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
path: root/sub
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-11-14 12:39:51 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-11-14 12:39:51 +0300
commitccda652e69f5d613acca6346dda3c15fcb7ba36b (patch)
tree3fa49a7ccbbe2a9cdb98ddb2d2ac5fede99e7f3e /sub
parent2982d809ab4f5301a27b811509e7fb92f427673f (diff)
SplitHTTP - Mode
Diffstat (limited to 'sub')
-rw-r--r--sub/subService.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sub/subService.go b/sub/subService.go
index 2838e932..1659b98b 100644
--- a/sub/subService.go
+++ b/sub/subService.go
@@ -238,6 +238,7 @@ func (s *SubService) genVmessLink(inbound *model.Inbound, email string) string {
headers, _ := splithttp["headers"].(map[string]interface{})
obj["host"] = searchHost(headers)
}
+ obj["mode"] = splithttp["mode"].(string)
}
security, _ := stream["security"].(string)
obj["tls"] = security
@@ -389,6 +390,7 @@ func (s *SubService) genVlessLink(inbound *model.Inbound, email string) string {
headers, _ := splithttp["headers"].(map[string]interface{})
params["host"] = searchHost(headers)
}
+ params["mode"] = splithttp["mode"].(string)
}
security, _ := stream["security"].(string)
if security == "tls" {
@@ -586,6 +588,7 @@ func (s *SubService) genTrojanLink(inbound *model.Inbound, email string) string
headers, _ := splithttp["headers"].(map[string]interface{})
params["host"] = searchHost(headers)
}
+ params["mode"] = splithttp["mode"].(string)
}
security, _ := stream["security"].(string)
if security == "tls" {
@@ -783,6 +786,7 @@ func (s *SubService) genShadowsocksLink(inbound *model.Inbound, email string) st
headers, _ := splithttp["headers"].(map[string]interface{})
params["host"] = searchHost(headers)
}
+ params["mode"] = splithttp["mode"].(string)
}
security, _ := stream["security"].(string)