Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-07-27 11:28:12 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-07-27 11:28:46 +0300
commit145ea1e6f17cc766df266ca3eacf8dd688eb1930 (patch)
tree3849ce3c15ba5d418ffda923270f1163f1e02124 /sub/subService.go
parent4cfed17650a2aa22346a4aee7aacf3ef6d0c667a (diff)
full multiuser shadowsocks
full multiuser shadowsocks + fix logs after api changes Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'sub/subService.go')
-rw-r--r--sub/subService.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/sub/subService.go b/sub/subService.go
index 100d98d3..d650da0c 100644
--- a/sub/subService.go
+++ b/sub/subService.go
@@ -755,7 +755,10 @@ func (s *SubService) genShadowsocksLink(inbound *model.Inbound, email string, ex
}
}
- encPart := fmt.Sprintf("%s:%s:%s", method, inboundPassword, clients[clientIndex].Password)
+ encPart := fmt.Sprintf("%s:%s", method, clients[clientIndex].Password)
+ if method[0] == '2' {
+ encPart = fmt.Sprintf("%s:%s:%s", method, inboundPassword, clients[clientIndex].Password)
+ }
link := fmt.Sprintf("ss://%s@%s:%d", base64.StdEncoding.EncodeToString([]byte(encPart)), address, inbound.Port)
url, _ := url.Parse(link)
q := url.Query()