mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-24 17:04:36 +01:00
remove debug message for getpeername failure
This commit is contained in:
parent
534ad8dfed
commit
6e19496fb7
@ -429,7 +429,6 @@ class Method(BaseMethod):
|
||||
except socket.error:
|
||||
_, e = sys.exc_info()[:2]
|
||||
if e.args[0] == errno.EINVAL:
|
||||
debug2("get_tcp_dstip error: sock.getpeername() %s\nsocket is probably closed.\n" % e)
|
||||
return sock.getsockname()
|
||||
|
||||
proxy = sock.getsockname()
|
||||
|
@ -97,7 +97,6 @@ def _try_peername(sock):
|
||||
except socket.error:
|
||||
_, e = sys.exc_info()[:2]
|
||||
if e.args[0] == errno.EINVAL:
|
||||
debug2("_try_peername error: sock.getpeername() %s\nsocket is probably closed.\n" % e)
|
||||
pass
|
||||
elif e.args[0] not in (errno.ENOTCONN, errno.ENOTSOCK):
|
||||
raise
|
||||
|
Loading…
Reference in New Issue
Block a user