From 32957158b9dcee71a013a0b907431643db979faf Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Tue, 19 Jul 2016 16:44:10 +0800 Subject: [PATCH] check decode remote_addr --- shadowsocks/tcprelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index 557ef98..085565c 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -466,7 +466,7 @@ class TCPRelayHandler(object): header_result = parse_header(data) if header_result is not None: try: - common.to_str(remote_addr) + common.to_str(header_result[1]) except Exception as e: header_result = None if header_result is None: