mirror of
https://github.com/xiaoqidun/probe.git
synced 2026-10-03 10:04:06 +08:00
1 parent
2be0a4a40b
commit
1d6d419f86
1 file changed
+1
-1
+1
-1
@@ -58,7 +58,7 @@ func (c *socks5PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
|
|||||||
return 0, nil, err
|
return 0, nil, err
|
||||||
}
|
}
|
||||||
if n < 10 {
|
if n < 10 {
|
||||||
return 0, nil, nil
|
return 0, nil, errors.New("packet too short")
|
||||||
}
|
}
|
||||||
atyp := buf[3]
|
atyp := buf[3]
|
||||||
var rAddr *net.UDPAddr
|
var rAddr *net.UDPAddr
|
||||||
|
|||||||
Reference in new issue
Block a user