mirror of
https://github.com//cppla/ServerStatus
synced 2025-06-02 21:59:51 +08:00
update
This commit is contained in:
parent
8ce00805c5
commit
df97a54b9c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user