fix: Converter for password of ss2022
This commit is contained in:
parent
847c8ccbc7
commit
43aa0883bc
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ 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, _ := enc.DecodeString(cipher)
|
||||||
|
if !strings.Contains(cipher, "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