From f0d6a5b41ee1f11016166f6d868c8b0a947efc75 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Wed, 27 Jul 2016 18:09:57 +0800 Subject: [PATCH] log listening port over UDP --- shadowsocks/udprelay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks/udprelay.py b/shadowsocks/udprelay.py index fff62c1..6f59527 100644 --- a/shadowsocks/udprelay.py +++ b/shadowsocks/udprelay.py @@ -1111,9 +1111,9 @@ class UDPRelay(object): logging.debug('UDP port %5d sockets %d' % (self._listen_port, len(self._sockets))) - common.connect_log('UDP data to %s:%d from %s:%d' % + common.connect_log('UDP data to %s:%d via port %d' % (common.to_str(server_addr), server_port, - r_addr[0], r_addr[1])) + self._listen_port)) self._cache.clear(self._udp_cache_size) self._cache_dns_client.clear(16)