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:
authorHamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com>2023-05-20 17:14:18 +0300
committerHamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com>2023-05-20 17:14:18 +0300
commitac9408c37f023b0fbe357735f1cb0915430ed596 (patch)
tree7ece9d663a9c02beab78edd17d7a48e06a164e8d
parent3d712890753a4f9981cca95685dec7ad4fff0acf (diff)
update sub remark for shadowsocks
-rw-r--r--web/service/sub.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/service/sub.go b/web/service/sub.go
index f39fdb1e..b9ea49bd 100644
--- a/web/service/sub.go
+++ b/web/service/sub.go
@@ -603,7 +603,8 @@ func (s *SubService) genShadowsocksLink(inbound *model.Inbound, email string) st
}
}
encPart := fmt.Sprintf("%s:%s:%s", method, inboundPassword, clients[clientIndex].Password)
- return fmt.Sprintf("ss://%s@%s:%d#%s", base64.StdEncoding.EncodeToString([]byte(encPart)), address, inbound.Port, clients[clientIndex].Email)
+ remark := fmt.Sprintf("%s-%s", inbound.Remark, clients[clientIndex].Email)
+ return fmt.Sprintf("ss://%s@%s:%d#%s", base64.StdEncoding.EncodeToString([]byte(encPart)), address, inbound.Port, remark)
}
func searchKey(data interface{}, key string) (interface{}, bool) {