From f22dd6b53d736556377080a305c40be2db3c8cce Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 6 May 2023 20:21:14 +0330 Subject: [feature] multi-user shadowsocks @alireza0 Co-Authored-By: Alireza Ahmadi --- web/service/inbound.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/service/inbound.go') 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 } -- cgit v1.2.3