socks5: fix a (non-critical) off-by-one, fix #4998
This commit is contained in:
parent
9b75f52073
commit
f68666d227
|
@ -204,7 +204,7 @@ class Socks5Proxy(DestinationKnown):
|
||||||
|
|
||||||
def state_connect(self):
|
def state_connect(self):
|
||||||
# Parse Connect Request
|
# Parse Connect Request
|
||||||
if len(self.buf) < 4:
|
if len(self.buf) < 5:
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.buf[:3] != b"\x05\x01\x00":
|
if self.buf[:3] != b"\x05\x01\x00":
|
||||||
|
|
Loading…
Reference in New Issue