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:
|
except socket.timeout:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
dest = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
try:
|
try:
|
||||||
dest = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
||||||
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