forked from p15670423/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:
|
except socket.timeout:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
|
||||||
dest = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
dest = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
|
try:
|
||||||
dest.connect((self.dest_host, self.dest_port))
|
dest.connect((self.dest_host, self.dest_port))
|
||||||
except socket.error as ex:
|
except socket.error as ex:
|
||||||
source.close()
|
source.close()
|
||||||
|
|
Loading…
Reference in New Issue