Browse Source

fix a typo

pull/861/head
Darien Raymond 7 years ago
parent
commit
c3dce11c4e
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      proxy/shadowsocks/config.go

2
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()

Loading…
Cancel
Save