From dcf2b5426fbb06b1f8108c8df745ed434a18a7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= Date: Fri, 25 Oct 2024 23:52:08 +0300 Subject: [PATCH] v1.83 --- main/HotspotAutoLogin.pyw | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/HotspotAutoLogin.pyw b/main/HotspotAutoLogin.pyw index 13ce378..88a6c9a 100644 --- a/main/HotspotAutoLogin.pyw +++ b/main/HotspotAutoLogin.pyw @@ -22,7 +22,7 @@ os.chdir(script_dir) # Program Information program_name = "HotspotAutoLogin" -version = "v1.82" +version = "v1.83" github_link = "https://github.com/denizsafak/HotspotAutoLogin" # Function to center a window on the screen @@ -227,6 +227,7 @@ root.mainloop() if selected_profile: payload = selected_profile.get('payload') url = selected_profile.get('url', "") + internet_check_url = selected_profile.get('internet_check_url', "") ssid = selected_profile.get('ssid', "") check_every_second = selected_profile.get('check_every_second', "") dialog_geometry = selected_profile.get('dialog_geometry', "") @@ -253,7 +254,7 @@ def is_internet_available(): # -n is the number of pings # -l is the size of the packet # -w is the timeout in seconds - subprocess.run(['ping', '8.8.8.8', '-n', '3', '-l', '32', '-w', '20'], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, creationflags=subprocess.CREATE_NO_WINDOW) + subprocess.run(['ping', internet_check_url, '-n', '3', '-l', '32', '-w', '20'], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, creationflags=subprocess.CREATE_NO_WINDOW) return True except subprocess.CalledProcessError: return False