Ver Fonte

fix a typo

Darien Raymond há 7 anos atrás
pai
commit
c3dce11c4e
1 ficheiros alterados com 1 adições e 1 exclusões
  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()