Browse Source

fix a typo

Darien Raymond 7 years ago
parent
commit
c3dce11c4e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      proxy/shadowsocks/config.go

+ 1 - 1
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()