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>2026-04-27 16:02:43 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-04-27 16:02:43 +0300
commit03393c9f527b62c124ea72120a62c92f3d269d30 (patch)
treec9b4dadcf47d0429fb3f7b50a612820263433db5 /sub
parentb56db67759744ff3db3bf96b86e1d3c0fc5ef799 (diff)
Minor changes
Diffstat (limited to 'sub')
-rw-r--r--sub/subService.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/sub/subService.go b/sub/subService.go
index 1ab55039..19ca21d9 100644
--- a/sub/subService.go
+++ b/sub/subService.go
@@ -1027,14 +1027,18 @@ type kcpShareFields struct {
}
func (f kcpShareFields) applyToParams(params map[string]string) {
- params["headerType"] = f.headerType
+ if f.headerType != "" && f.headerType != "none" {
+ params["headerType"] = f.headerType
+ }
setStringParam(params, "seed", f.seed)
setIntParam(params, "mtu", f.mtu)
setIntParam(params, "tti", f.tti)
}
func (f kcpShareFields) applyToObj(obj map[string]any) {
- obj["type"] = f.headerType
+ if f.headerType != "" && f.headerType != "none" {
+ obj["type"] = f.headerType
+ }
setStringField(obj, "path", f.seed)
setIntField(obj, "mtu", f.mtu)
setIntField(obj, "tti", f.tti)