diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-17 15:40:11 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-17 15:40:11 +0300 |
| commit | f8eb548376d34df554ffe98ab057d946d064addd (patch) | |
| tree | 5de5c09a4cd32cf193df5ec9931264a7e8a3661d /web/service/sub.go | |
| parent | 88fc4f81d452d8513169a2efd75553aa0ad64743 (diff) | |
[feature] SpiderX for Reality
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/service/sub.go')
| -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 |
