fix ss link #443
This commit is contained in:
+4
-5
@@ -111,6 +111,10 @@ func shadowsocksLink(
|
||||
|
||||
var userPass []string
|
||||
method, _ := inbound["method"].(string)
|
||||
if strings.HasPrefix(method, "2022") {
|
||||
inbPass, _ := inbound["password"].(string)
|
||||
userPass = append(userPass, inbPass)
|
||||
}
|
||||
var pass string
|
||||
if method == "2022-blake3-aes-128-gcm" {
|
||||
pass, _ = userConfig["shadowsocks16"]["password"].(string)
|
||||
@@ -119,11 +123,6 @@ func shadowsocksLink(
|
||||
}
|
||||
userPass = append(userPass, pass)
|
||||
|
||||
if strings.HasPrefix(method, "2022") {
|
||||
inbPass, _ := inbound["password"].(string)
|
||||
userPass = append(userPass, inbPass)
|
||||
}
|
||||
|
||||
uriBase := fmt.Sprintf("ss://%s", toBase64([]byte(fmt.Sprintf("%s:%s", method, strings.Join(userPass, ":")))))
|
||||
|
||||
var links []string
|
||||
|
||||
Reference in New Issue
Block a user