Skip to content

Commit

Permalink
Fix: revert ssr udp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed Nov 14, 2021
1 parent 499beb7 commit 08c43b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/ssr/protocol/auth_aes128_sha1.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (a *authAES128) Encode(buf *bytes.Buffer, b []byte) error {
}

func (a *authAES128) DecodePacket(b []byte) ([]byte, error) {
if !bytes.Equal(a.hmac(a.userKey, b[:len(b)-4])[:4], b[len(b)-4:]) {
if !bytes.Equal(a.hmac(a.Key, b[:len(b)-4])[:4], b[len(b)-4:]) {
return nil, errAuthAES128ChksumError
}
return b[:len(b)-4], nil
Expand Down

0 comments on commit 08c43b8

Please sign in to comment.