From 113036bccabac7d614b64d15df9ad35420f1b72d Mon Sep 17 00:00:00 2001 From: hiddify <114227601+hiddify-com@users.noreply.github.com> Date: Fri, 20 Dec 2024 01:07:39 +0330 Subject: [PATCH] fix: splithttp --- ray2sing/xray_common.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ray2sing/xray_common.go b/ray2sing/xray_common.go index 452f8b4..a680908 100644 --- a/ray2sing/xray_common.go +++ b/ray2sing/xray_common.go @@ -170,7 +170,9 @@ func getStreamSettingsXray(decoded map[string]string) (map[string]any, error) { // net = "http" // } res := map[string]any{} - + if net == "splithttp" { + net = "xhttp" + } res["network"] = net switch net { case "tcp": @@ -188,7 +190,7 @@ func getStreamSettingsXray(decoded map[string]string) (map[string]any, error) { case "quic": res[net+"Settings"] = getquic(decoded) decoded["alpn"] = "h3" - case "splithttp": + case "xhttp": res[net+"Settings"] = getsplithttp(decoded) case "h2": res[net+"Settings"] = geth2(decoded)