mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Replace google ping for ntp for usability in china
This commit is contained in:
parent
7641b06dfa
commit
52ef76e15b
@ -272,7 +272,7 @@ class Helpers:
|
||||
@staticmethod
|
||||
def check_internet():
|
||||
try:
|
||||
requests.get("https://google.com", timeout=1)
|
||||
requests.get("https://ntp.org", timeout=1)
|
||||
return True
|
||||
except Exception:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user