From fad2cac088fc5f02f6bae1ce6fc297ef6eb2f221 Mon Sep 17 00:00:00 2001 From: chacha <1000chacha0001@gmail.com> Date: Mon, 25 Jul 2022 11:24:18 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'ChaChaIPToCountryD?= =?UTF-8?q?aemon/core.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChaChaIPToCountryDaemon/core.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ChaChaIPToCountryDaemon/core.py b/ChaChaIPToCountryDaemon/core.py index 3715e80..23f7206 100644 --- a/ChaChaIPToCountryDaemon/core.py +++ b/ChaChaIPToCountryDaemon/core.py @@ -459,14 +459,12 @@ class ChaChaIPToCountryStorage: _ipv4setTz["ZZ"] = dict() - _ipv4setTz["ZZ"]["HOMELAND"] = IPSet() - _ipv4setTz["ZZ"]["HOMELAND"].update(IPRange("0.0.0.0", "255.255.255.255")) - _ipv4setTz["ZZ"]["HOMELAND"].ForceCompact() + _ipv4setTz["ZZ"]["Etc/Universal"] = IPSet() + _ipv4setTz["ZZ"]["Etc/Universal"].update(IPRange("0.0.0.0/0")) if DEFAULT__EnableIPV6: _ipv6setTz["ZZ"] = dict() - _ipv6setTz["ZZ"]["HOMELAND"] = IPSet() - _ipv6setTz["ZZ"]["HOMELAND"].update(IPRange("fc00::/7")) - _ipv6setTz["ZZ"]["HOMELAND"].ForceCompact() + _ipv6setTz["ZZ"]["Etc/Universal"] = IPSet() + _ipv6setTz["ZZ"]["Etc/Universal"].update(IPRange("0::/0")) print("Updating live IPV4 storage") await self.DataSetlock.acquire()