diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2013-09-20 14:39:55 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2013-09-20 14:39:55 -0700 |
commit | 02387fc88cbbfff79e838fd049dc1d8dc1ee2c4b (patch) | |
tree | bfd74ae78e9216392f3119f9ca79c666013e837b /demos/forward.py | |
parent | 3399d519e04c73ea2c16df4037da9de20b5c83f6 (diff) | |
parent | fa61f3c398068895e6a483e3ce1ccc684b18ff49 (diff) |
Merge branch '1.10' into 168-int
Conflicts:
NEWS
setup.py
Diffstat (limited to 'demos/forward.py')
-rw-r--r-- | demos/forward.py | 4 |
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): |