fix data size
This commit is contained in:
parent
c5ca6bd80a
commit
2e65becc44
1 changed files with 1 additions and 1 deletions
|
@ -1080,7 +1080,7 @@ class UDPRelay(object):
|
||||||
client = socket.socket(af, socktype, proto)
|
client = socket.socket(af, socktype, proto)
|
||||||
client.setblocking(False)
|
client.setblocking(False)
|
||||||
is_dns = 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
|
is_dns = True
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue