fix: ss2022 converter password decode error
This commit is contained in:
parent
3a8e7c8899
commit
0c354c748a
1 changed files with 1 additions and 4 deletions
|
@ -280,10 +280,7 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
|
||||||
)
|
)
|
||||||
|
|
||||||
if password, found = urlSS.User.Password(); !found {
|
if password, found = urlSS.User.Password(); !found {
|
||||||
dcBuf, _ := enc.DecodeString(cipher)
|
dcBuf, _ := encRaw.DecodeString(cipher)
|
||||||
if !strings.Contains(string(dcBuf), "2022-blake3") {
|
|
||||||
dcBuf, _ = encRaw.DecodeString(cipher)
|
|
||||||
}
|
|
||||||
cipher, password, found = strings.Cut(string(dcBuf), ":")
|
cipher, password, found = strings.Cut(string(dcBuf), ":")
|
||||||
if !found {
|
if !found {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue