Skip to content

Commit 3aaf2cf

Browse files
authored
Update setup_basic.py
1 parent 47eb89c commit 3aaf2cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup_basic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os,sys,time,subprocess
1+
import os,sys,time,socket,subprocess
22

33

44
# Versoin: 1.0
@@ -43,7 +43,7 @@ def load(y):
4343

4444
def internet():
4545
try:
46-
s = socket(AF_NET, SOCK_STREAM)
46+
s = socket.socket(socket.AF_NET, socket.SOCK_STREAM)
4747
s.connect_ex(("www.google.com",80))
4848
return True
4949
except Exception:return False
@@ -137,8 +137,8 @@ def main():
137137
os.system("clea" + "r || cls")
138138
start_banner()
139139
net=internet()
140-
if net:
141-
# if not net:
140+
141+
if not net:
142142
time.sleep(1)
143143
slow(f"\n{error}Please check your internet connection{stop}")
144144
os.sys.exit()

0 commit comments

Comments
 (0)