Browse Source

convert remote_address to str so it will be printed more correctly on python 3

master
Felix Yan 10 years ago
parent
commit
edb7822a7b
  1. 2
      shadowsocks/tcprelay.py

2
shadowsocks/tcprelay.py

@ -295,7 +295,7 @@ class TCPRelayHandler(object):
logging.info('connecting %s:%d from %s:%d' % logging.info('connecting %s:%d from %s:%d' %
(common.to_str(remote_addr), remote_port, (common.to_str(remote_addr), remote_port,
self._client_address[0], self._client_address[1])) self._client_address[0], self._client_address[1]))
self._remote_address = (remote_addr, remote_port) self._remote_address = (common.to_str(remote_addr), remote_port)
# pause reading # pause reading
self._update_stream(STREAM_UP, WAIT_STATUS_WRITING) self._update_stream(STREAM_UP, WAIT_STATUS_WRITING)
self._stage = STAGE_DNS self._stage = STAGE_DNS

Loading…
Cancel
Save