summaryrefslogtreecommitdiffhomepage
path: root/demos
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2013-09-20 14:47:09 -0700
committerJeff Forcier <jeff@bitprophet.org>2013-09-20 14:47:09 -0700
commite2aa7c17b0d7938dbff1eb35cd09af25a92e5ab3 (patch)
tree7e7d8162cc79b24375c1b0578e4b7842058bce97 /demos
parent081b04116be29072695a54e52e74ca9879bf03f9 (diff)
parentdb9dfebca801efbfd3743d85d4f7916f3996f4f5 (diff)
Merge branch '1.10' into 1.11
Conflicts: NEWS
Diffstat (limited to 'demos')
-rw-r--r--demos/forward.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/forward.py b/demos/forward.py
index 4e107855..2a4c4248 100644
--- a/demos/forward.py
+++ b/demos/forward.py
@@ -78,9 +78,11 @@ class Handler (SocketServer.BaseRequestHandler):
if len(data) == 0:
break
self.request.send(data)
+
+ peername = self.request.getpeername()
chan.close()
self.request.close()
- verbose('Tunnel closed from %r' % (self.request.getpeername(),))
+ verbose('Tunnel closed from %r' % (peername,))
def forward_tunnel(local_port, remote_host, remote_port, transport):