diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-06 19:51:14 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-06 19:51:14 +0300 |
| commit | f22dd6b53d736556377080a305c40be2db3c8cce (patch) | |
| tree | caae9937645094ccf2513ac46a2bfa5ca446df3b /web/service/inbound.go | |
| parent | 735df6bd4ed18d656355067826a6f5e50495c63e (diff) | |
[feature] multi-user shadowsocks @alireza0
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/service/inbound.go')
| -rw-r--r-- | web/service/inbound.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/service/inbound.go b/web/service/inbound.go index b14f7b4f..7e838b5f 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -332,6 +332,9 @@ func (s *InboundService) DelInboundClient(inboundId int, clientId string) error if oldInbound.Protocol == "trojan" { client_key = "password" } + if oldInbound.Protocol == "shadowsocks" { + client_key = "email" + } inerfaceClients := settings["clients"].([]interface{}) var newClients []interface{} @@ -398,6 +401,8 @@ func (s *InboundService) UpdateInboundClient(data *model.Inbound, clientId strin oldClientId := "" if oldInbound.Protocol == "trojan" { oldClientId = oldClient.Password + } else if oldInbound.Protocol == "shadowsocks" { + oldClientId = oldClient.Email } else { oldClientId = oldClient.ID } |
