mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 11:29:36 +03:00
fix(proxy): removed the udp payload length check when encryption is disabled
This commit is contained in:
@ -80,6 +80,11 @@ func (v *Validator) Get(bs []byte, command protocol.RequestCommand) (u *protocol
|
||||
|
||||
for _, user := range v.users {
|
||||
if account := user.Account.(*MemoryAccount); account.Cipher.IsAEAD() {
|
||||
// AEAD payload decoding requires the payload to be over 32 bytes
|
||||
if len(bs) < 32 {
|
||||
continue
|
||||
}
|
||||
|
||||
aeadCipher := account.Cipher.(*AEADCipher)
|
||||
ivLen = aeadCipher.IVSize()
|
||||
iv := bs[:ivLen]
|
||||
|
Reference in New Issue
Block a user