mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 07:56:47 +00:00
Fix: revert ssr udp fix
This commit is contained in:
1 parent
499beb7344
commit
08c43b8876
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user