mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
fix: shadowsocks
This commit is contained in:
@@ -116,8 +116,8 @@ func getInboundOptions(tag string, info *panel.NodeInfo, c *conf.Options) (optio
|
||||
_, _ = rand.Read(p)
|
||||
randomPasswd := hex.EncodeToString(p)
|
||||
if strings.Contains(info.Cipher, "2022") {
|
||||
in.ShadowsocksOptions.Password = info.ServerKey
|
||||
randomPasswd = base64.StdEncoding.EncodeToString([]byte(randomPasswd))
|
||||
in.ShadowsocksOptions.Password = randomPasswd
|
||||
}
|
||||
in.ShadowsocksOptions.Users = []option.ShadowsocksUser{{
|
||||
Password: randomPasswd,
|
||||
|
||||
Reference in New Issue
Block a user