Replace google ping for ntp for usability in china

This commit is contained in:
Andrew 2023-01-03 10:14:10 -08:00
parent 7641b06dfa
commit 52ef76e15b

View File

@ -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