diff --git a/src/parser/subparser.cpp b/src/parser/subparser.cpp index a6bdc10..5cff129 100644 --- a/src/parser/subparser.cpp +++ b/src/parser/subparser.cpp @@ -1236,6 +1236,9 @@ void explodeClash(Node yamlnode, std::vector &nodes) { singleproxy["ws-opts"]["path"]) : "/"; singleproxy["ws-opts"]["headers"]["Host"] >>= host; + if (host.empty()) { + singleproxy["ws-opts"]["headers"]["host"] >>= host; + } singleproxy["ws-opts"]["headers"]["Edge"] >>= edge; } else { path = singleproxy["ws-path"].IsDefined() @@ -1428,6 +1431,9 @@ void explodeClash(Node yamlnode, std::vector &nodes) { singleproxy["ws-opts"]["path"]) : "/"; singleproxy["ws-opts"]["headers"]["Host"] >>= host; + if (host.empty()) { + singleproxy["ws-opts"]["headers"]["host"] >>= host; + } singleproxy["ws-opts"]["headers"]["Edge"] >>= edge; if (singleproxy["ws-opts"]["v2ray-http-upgrade"].IsDefined()) { v2ray_http_upgrade = safe_as(singleproxy["ws-opts"]["v2ray-http-upgrade"]);