Browse Source

check decode remote_addr

dev
BreakWa11 9 years ago
parent
commit
32957158b9
  1. 2
      shadowsocks/tcprelay.py

2
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:

Loading…
Cancel
Save