fix: ss converter cipher missing

This commit is contained in:
metacubex 2023-01-14 21:37:06 +08:00
parent 27ceae580a
commit 5dd691aa95

View file

@ -272,7 +272,7 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
cipher string
password string
)
cipher = cipherRaw
if password, found = urlSS.User.Password(); !found {
dcBuf, _ := enc.DecodeString(cipherRaw)
cipher, password, found = strings.Cut(string(dcBuf), ":")