mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 01:08:33 +00:00
Fix Shadowsocks tests; AEAD drop small UDP packets
https://t.me/projectXray/172063
This commit is contained in:
parent
33755d6e90
commit
8ff43519fd
3 changed files with 24 additions and 21 deletions
|
@ -268,6 +268,9 @@ func DecodeUDPPacket(users []*protocol.MemoryUser, payload *buf.Buffer) (*protoc
|
|||
|
||||
if len(users) > 1 {
|
||||
bs := payload.Bytes()
|
||||
if len(bs) <= 32 {
|
||||
return nil, nil, newError("len(bs) <= 32")
|
||||
}
|
||||
|
||||
var aeadCipher *AEADCipher
|
||||
var ivLen int32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue