From 52ef76e15b927a8da19966fb80dadc79b841dc76 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 3 Jan 2023 10:14:10 -0800 Subject: [PATCH 1/2] Replace google ping for ntp for usability in china --- app/classes/shared/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index 39b7b12e..c5238ae8 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -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 From a0e62dbb1d27e73e1ae941613f3ba9119f33df26 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Sat, 7 Jan 2023 14:47:27 +0000 Subject: [PATCH 2/2] Update changelog !524 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f13d1529..933d1c2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ TBD - Make server directories non-configurable ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/511)) - Add popover to server port to detail it's purpose ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/514)) - Add server start timeout w/ WS Warning ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/518)) +- Replace google ping for ntp for internet checks in locked-down countries ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/524)) ### Lang TBD