random sub Id

optimize utils
trojan short id fix
index page better view
This commit is contained in:
MHSanaei
2023-06-07 12:45:58 +03:30
parent 70f250dfe1
commit 594d682e20
15 changed files with 31 additions and 46 deletions

View File

@@ -576,7 +576,7 @@ func (s *SubService) genTrojanLink(inbound *model.Inbound, email string) string
if pbkValue, ok := searchKey(realitySettings, "publicKey"); ok {
params["pbk"], _ = pbkValue.(string)
}
if sidValue, ok := searchKey(realitySettings, "shortIds"); ok {
if sidValue, ok := searchKey(realitySetting, "shortIds"); ok {
shortIds, _ := sidValue.([]interface{})
params["sid"], _ = shortIds[0].(string)
}