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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-05-17 15:40:11 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-05-17 15:40:11 +0300
commitf8eb548376d34df554ffe98ab057d946d064addd (patch)
tree5de5c09a4cd32cf193df5ec9931264a7e8a3661d /web/service
parent88fc4f81d452d8513169a2efd75553aa0ad64743 (diff)
[feature] SpiderX for Reality
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/service')
-rw-r--r--web/service/sub.go10
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