Skip to content

Commit b785e23

Browse files
authored
Update README.md
1 parent d6e90f9 commit b785e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ lock = threading.Lock()
3333
def Scan(port):
3434
try:
3535
conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
36-
conn.settimeout(2)
36+
conn.settimeout(3) # 3秒的话,大概1k端口47秒,2秒则是1k端口33秒,延时越大越不容易漏但时间越长
3737
res = conn.connect_ex((str(ip), int(port)))
3838
if res == 0:
3939
# 将结果添加到当前线程局部变量中

0 commit comments

Comments
 (0)