From 2e65becc44e877ef4924102749cceb402e3cd38b Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Mon, 23 May 2016 17:28:37 +0800 Subject: [PATCH] fix data size --- shadowsocks/udprelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/udprelay.py b/shadowsocks/udprelay.py index 1b119ea..347c89b 100644 --- a/shadowsocks/udprelay.py +++ b/shadowsocks/udprelay.py @@ -1080,7 +1080,7 @@ class UDPRelay(object): client = socket.socket(af, socktype, proto) client.setblocking(False) is_dns = False - if len(data) > 12 and data[11:19] == b"\x00\x01\x00\x00\x00\x00\x00\x00": + if len(data) > 20 and data[11:19] == b"\x00\x01\x00\x00\x00\x00\x00\x00": is_dns = True else: pass