mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 17:16:47 +00:00
fix: Converter for password of ss2022
This commit is contained in:
1 parent
449946cc15
commit
dbb834d964
1 file changed
+3
@@ -348,6 +348,9 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
|
||||
|
||||
if password, found = urlSS.User.Password(); !found {
|
||||
dcBuf, _ := enc.DecodeString(cipher)
|
||||
if !strings.Contains(cipher, "2022-blake3") {
|
||||
dcBuf, _ = encRaw.DecodeString(cipher)
|
||||
}
|
||||
cipher, password, found = strings.Cut(string(dcBuf), ":")
|
||||
if !found {
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user