From 2e724a7caaa90cb85c9c9eb891d84373d78ea0fa Mon Sep 17 00:00:00 2001 From: alexej996 Date: Mon, 1 Oct 2018 01:28:08 +0200 Subject: socket timout - duplicate line --- tmap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmap b/tmap index d670994..36eeb72 100755 --- a/tmap +++ b/tmap @@ -9,10 +9,10 @@ def connScan(host, port, wait, notor): ## If notor is set to True, it doesn't use the socks proxy if notor: sckt = socket(AF_INET, SOCK_STREAM) - sckt.settimeout(wait) else: sckt = socks.socksocket() - sckt.settimeout(wait) + + sckt.settimeout(wait) ## Try to connect, print to stdout on success try: sckt.connect((host, port)) -- cgit v1.2.3