From 6e19496fb7c727995f9d6e92259c115af21c250b Mon Sep 17 00:00:00 2001 From: Mark Heiges Date: Sat, 9 May 2020 15:42:37 -0400 Subject: [PATCH] remove debug message for getpeername failure --- sshuttle/methods/pf.py | 1 - sshuttle/ssnet.py | 1 - 2 files changed, 2 deletions(-) diff --git a/sshuttle/methods/pf.py b/sshuttle/methods/pf.py index 15a8da4..c2cd16e 100644 --- a/sshuttle/methods/pf.py +++ b/sshuttle/methods/pf.py @@ -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() diff --git a/sshuttle/ssnet.py b/sshuttle/ssnet.py index c145233..5f30c42 100644 --- a/sshuttle/ssnet.py +++ b/sshuttle/ssnet.py @@ -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