Fix ignore shortIds in Trojan sub link

This commit is contained in:
Sudo Space
2023-06-08 16:42:47 +03:30
parent 37e90ad587
commit c897153140

View File

@@ -539,7 +539,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)
}