check decode remote_addr

This commit is contained in:
BreakWa11 2016-07-19 16:44:10 +08:00
parent 9538afebff
commit 32957158b9

View file

@ -466,7 +466,7 @@ class TCPRelayHandler(object):
header_result = parse_header(data) header_result = parse_header(data)
if header_result is not None: if header_result is not None:
try: try:
common.to_str(remote_addr) common.to_str(header_result[1])
except Exception as e: except Exception as e:
header_result = None header_result = None
if header_result is None: if header_result is None: