From c3dce11c4e46524afbb5b1465cdf4a2a8f6e0ec2 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 19 Jan 2018 14:08:45 +0100 Subject: [PATCH] fix a typo --- proxy/shadowsocks/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()