From 130b2fb25c57c2bb2849726fca36604b3b24d626 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 16 Jan 2014 08:40:28 +0000 Subject: [PATCH] fix socks.py --- test/socks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/socks.py b/test/socks.py index 2cea1b29b..d12f47314 100644 --- a/test/socks.py +++ b/test/socks.py @@ -106,7 +106,7 @@ class SocksHandler(StreamRequestHandler): outbound_sock = socket.socket(socket.AF_INET) out_address = socket.getaddrinfo(dest_address,dest_port)[0][4] - debug("Creating forwarder connection to %r", out_address) + debug("Creating forwarder connection to %s:%d" % (out_address[0], out_address[1])) outbound_sock.connect(out_address) self.send_reply_v4(outbound_sock.getsockname()) @@ -190,7 +190,7 @@ class SocksHandler(StreamRequestHandler): except Exception, e: print e return - debug("Creating forwarder connection to %r", out_address) + debug("Creating forwarder connection to %s:%d" % (out_address[0], out_address[1])) try: outbound_sock.connect(out_address)