From 0c354c748a6a1d75f86adaa9ae383bf86ec16ed3 Mon Sep 17 00:00:00 2001 From: metacubex Date: Tue, 10 Jan 2023 18:13:18 +0800 Subject: [PATCH] fix: ss2022 converter password decode error --- common/convert/converter.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/convert/converter.go b/common/convert/converter.go index da69f9d0..33d20cc8 100644 --- a/common/convert/converter.go +++ b/common/convert/converter.go @@ -280,10 +280,7 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) { ) if password, found = urlSS.User.Password(); !found { - dcBuf, _ := enc.DecodeString(cipher) - if !strings.Contains(string(dcBuf), "2022-blake3") { - dcBuf, _ = encRaw.DecodeString(cipher) - } + dcBuf, _ := encRaw.DecodeString(cipher) cipher, password, found = strings.Cut(string(dcBuf), ":") if !found { continue