diff --git a/proxy/shadowsocks/config.go b/proxy/shadowsocks/config.go index 5105e380..4d67b02b 100644 --- a/proxy/shadowsocks/config.go +++ b/proxy/shadowsocks/config.go @@ -206,7 +206,7 @@ func (c *AEADCipher) EncodePacket(key []byte, b *buf.Buffer) error { } func (c *AEADCipher) DecodePacket(key []byte, b *buf.Buffer) error { - if b.Len() <= v.IVSize() { + if b.Len() <= c.IVSize() { return newError("insufficient data: ", b.Len()) } ivLen := c.IVSize()