From 77092773ab02e3ed9617e18d8d788373485d39b1 Mon Sep 17 00:00:00 2001 From: ylink Date: Sun, 23 Sep 2018 13:40:13 +0800 Subject: [PATCH] Update checkInternetConnection function Not everyone can access google with ease, exp, uses in China Mainland. I changed the check link from https://google.com to https://github.com for a greater compatibility. --- kickthemout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kickthemout.py b/kickthemout.py index 73421f7..a561f1f 100644 --- a/kickthemout.py +++ b/kickthemout.py @@ -127,7 +127,7 @@ def runDebug(): # make sure there is an internet connection def checkInternetConnection(): try: - urlopen('https://google.com', timeout=3) + urlopen('https://github.com', timeout=3) return True except URLError as err: return False @@ -785,4 +785,4 @@ if __name__ == '__main__': # set to non-interactive attack interactive = False - main() \ No newline at end of file + main()