forked from p34709852/monkey
Move out of try, can't realistically fail
This commit is contained in:
parent
65436ad5d6
commit
1393c88277
|
@ -61,8 +61,8 @@ class TcpProxy(TransportProxyBase):
|
|||
except socket.timeout:
|
||||
continue
|
||||
|
||||
dest = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
try:
|
||||
dest = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
dest.connect((self.dest_host, self.dest_port))
|
||||
except socket.error as ex:
|
||||
source.close()
|
||||
|
|
Loading…
Reference in New Issue