Update subparser.cpp

This commit is contained in:
greatcoolge authored and GitHub committed 2026-03-04 20:06:14 +08:00
1 parent 1ea552ac60
commit 79369b0e76
1 file changed
+2 -2
+2 -2
View File
@@ -1290,7 +1290,7 @@ void explodeClash(Node yamlnode, std::vector<Proxy> &nodes) {
singleproxy["plugin-opts"]["host"] >>= pluginopts_host;
tls = safe_as<bool>(singleproxy["plugin-opts"]["tls"]) ? "tls;" : "";
singleproxy["plugin-opts"]["path"] >>= path;
pluginopts_mux = safe_as<bool>(singleproxy["plugin-opts"]["mux"]) ? "mux=4;" : "";
pluginopts_mux = safe_as<bool>(singleproxy["plugin-opts"]["mux"]) ? "4" : "";
}
break;
default:
@@ -1310,7 +1310,7 @@ void explodeClash(Node yamlnode, std::vector<Proxy> &nodes) {
pluginopts += pluginopts_host.empty() ? "" : ";obfs-host=" + pluginopts_host;
break;
case "v2ray-plugin"_hash:
pluginopts = "mode=" + pluginopts_mode + ";" + tls + pluginopts_mux;
pluginopts = "mode=" + pluginopts_mode + ";" + tls;
if (!pluginopts_host.empty())
pluginopts += "host=" + pluginopts_host + ";";
if (!path.empty())