From e2c9bdc3d270fb4142b4bcee98cf0b0cb7d035ec Mon Sep 17 00:00:00 2001 From: parhelia512 <0011d3@gmail.com> Date: Wed, 17 Sep 2025 04:08:21 +0800 Subject: [PATCH] Update GroupUpdater.cpp --- src/configs/sub/GroupUpdater.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/configs/sub/GroupUpdater.cpp b/src/configs/sub/GroupUpdater.cpp index 90cfcaa..881dfe2 100644 --- a/src/configs/sub/GroupUpdater.cpp +++ b/src/configs/sub/GroupUpdater.cpp @@ -501,7 +501,7 @@ namespace Subscription { } else { bean->password = Node2QString(proxy["password"]); } - bean->stream->security = "tls"; + if (Node2Bool(proxy["tls"])) bean->stream->security = "tls"; bean->stream->network = Node2QString(proxy["network"], "tcp"); bean->stream->sni = FIRST_OR_SECOND(Node2QString(proxy["sni"]), Node2QString(proxy["servername"])); bean->stream->alpn = Node2QStringList(proxy["alpn"]).join(","); @@ -542,6 +542,13 @@ namespace Subscription { bean->stream->reality_pbk = Node2QString(reality["public-key"]); bean->stream->reality_sid = Node2QString(reality["short-id"]); } + + if (bean->stream->network == "tcp") { + if (bean->stream->header_type.isEmpty()) + bean->stream->header_type = "http"; + if (bean->stream->path.isEmpty()) + bean->stream->path = "/"; + } } else if (type == "vmess") { needFix = true; auto bean = ent->VMessBean();