From 03393c9f527b62c124ea72120a62c92f3d269d30 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 27 Apr 2026 15:02:43 +0200 Subject: Minor changes --- sub/subService.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sub') 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) -- cgit v1.2.3