Mise à jour de 'ChaChaIPToCountryDaemon/core.py'

This commit is contained in:
2022-07-25 11:08:06 +00:00
parent c1abbce755
commit f6dd66e232

View File

@@ -452,7 +452,19 @@ class ChaChaIPToCountryStorage:
_ipv6setTz[_country_key][_city_key].update(_set)
_ipv6set[_country_key].ForceCompact()
_ipv6setTz[_country_key][_city_key].ForceCompact()
print("Done")
print("Done")
#Add private network at the end
_ipv4setTz["ZZ"] = dict()
_ipv4setTz["ZZ"]["HOMELAND"].update(IPRange("0.0.0.0", "255.255.255.255"))
_ipv4setTz["ZZ"]["HOMELAND"].ForceCompact()
if DEFAULT__EnableIPV6:
_ipv6setTz["ZZ"] = dict()
_ipv6setTz["ZZ"]["HOMELAND"].update(IPRange("fc00::/7"))
_ipv6setTz["ZZ"]["HOMELAND"].ForceCompact()
print("Updating live IPV4 storage")
await self.DataSetlock.acquire()