system/ui: Use OPENPILOT_URL instead of google.com for network connectivity check (#35254)

check OPENPILOT_URL
pull/35255/head
Dean Lee 6 days ago committed by GitHub
parent 71e3fd7183
commit 09fde3c3ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/ui/setup.py

@ -123,7 +123,7 @@ class Setup:
while not self.stop_network_check_thread.is_set(): while not self.stop_network_check_thread.is_set():
if self.state == SetupState.NETWORK_SETUP: if self.state == SetupState.NETWORK_SETUP:
try: try:
urllib.request.urlopen("https://google.com", timeout=2) urllib.request.urlopen(OPENPILOT_URL, timeout=2)
self.network_connected.set() self.network_connected.set()
if HARDWARE.get_network_type() == NetworkType.wifi: if HARDWARE.get_network_type() == NetworkType.wifi:
self.wifi_connected.set() self.wifi_connected.set()

Loading…
Cancel
Save