diff options
Diffstat (limited to 'web/service')
| -rw-r--r-- | web/service/sub.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web/service/sub.go b/web/service/sub.go index 01cd29dd..f39fdb1e 100644 --- a/web/service/sub.go +++ b/web/service/sub.go @@ -327,6 +327,11 @@ func (s *SubService) genVlessLink(inbound *model.Inbound, email string) string { params["fp"] = fp } } + if spxValue, ok := searchKey(realitySettings, "spiderX"); ok { + if spx, ok := spxValue.(string); ok && len(spx) > 0 { + params["spx"] = spx + } + } if serverName, ok := searchKey(realitySettings, "serverName"); ok { if sname, ok := serverName.(string); ok && len(sname) > 0 { address = sname @@ -508,6 +513,11 @@ func (s *SubService) genTrojanLink(inbound *model.Inbound, email string) string params["fp"] = fp } } + if spxValue, ok := searchKey(realitySettings, "spiderX"); ok { + if spx, ok := spxValue.(string); ok && len(spx) > 0 { + params["spx"] = spx + } + } if serverName, ok := searchKey(realitySettings, "serverName"); ok { if sname, ok := serverName.(string); ok && len(sname) > 0 { address = sname |
