mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
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):
|
||||
# Parse Connect Request
|
||||
if len(self.buf) < 4:
|
||||
if len(self.buf) < 5:
|
||||
return
|
||||
|
||||
if self.buf[:3] != b"\x05\x01\x00":
|
||||
|
Loading…
Reference in New Issue
Block a user