fix: ss converter cipher missing

This commit is contained in:
gVisor bot 2023-01-14 21:37:06 +08:00
parent 3ff14869ae
commit 7d6ccebef7

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), ":")