This commit is contained in:
ubuntu 2018-09-03 12:22:13 +08:00
parent 8ce00805c5
commit df97a54b9c
2 changed files with 4 additions and 4 deletions

@ -151,10 +151,10 @@ def get_network(ip_version):
HOST = "ipv6.google.com"
try:
s = socket.create_connection((HOST, 80), 2)
s.close()
return True
except:
pass
return False
return False
lostRate = {
'10010': 0.0,

@ -119,10 +119,10 @@ def get_network(ip_version):
HOST = "ipv6.google.com"
try:
s = socket.create_connection((HOST, 80), 2)
s.close()
return True
except:
pass
return False
return False
lostRate = {
'10010': 0.0,