mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-12 16:18:55 +01:00
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.
This commit is contained in:
parent
a4386905f6
commit
77092773ab
@ -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()
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user