Mise à jour de 'ChaChaIPToCountryDaemon/core.py'

fix ipv6 toogle flag
This commit is contained in:
2022-07-18 18:54:29 +00:00
parent 03883af3c7
commit b87613961c

View File

@@ -394,7 +394,8 @@ class ChaChaIPToCountryStorage:
tasksIPV4.append( loop.run_in_executor(_executor,processIPRangeList,IPRange("192.168.0.0", "192.168.255.255"), "ZZ"))
tasksIPV4.append( loop.run_in_executor(_executor,processIPRangeList,IPRange("10.0.0.0", "10.255.255.255"), "ZZ"))
tasksIPV4.append( loop.run_in_executor(_executor,processIPRangeList,IPRange("172.16.0.0", "172.31.255.255"), "ZZ"))
tasksIPV6.append( loop.run_in_executor(_executor,processIPRangeList,IPRange("fc00::/7"), "ZZ"))
if DEFAULT__EnableIPV6:
tasksIPV6.append( loop.run_in_executor(_executor,processIPRangeList,IPRange("fc00::/7"), "ZZ"))
print("Wait IPV4 parsing to complete (files)...")
results = await asyncio.gather(*tasksIPV4)