mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 18:24:58 +00:00
Update subparser.cpp
This commit is contained in:
1 parent
1ea552ac60
commit
79369b0e76
1 file changed
+2
-2
@@ -1290,7 +1290,7 @@ void explodeClash(Node yamlnode, std::vector<Proxy> &nodes) {
|
|||||||
singleproxy["plugin-opts"]["host"] >>= pluginopts_host;
|
singleproxy["plugin-opts"]["host"] >>= pluginopts_host;
|
||||||
tls = safe_as<bool>(singleproxy["plugin-opts"]["tls"]) ? "tls;" : "";
|
tls = safe_as<bool>(singleproxy["plugin-opts"]["tls"]) ? "tls;" : "";
|
||||||
singleproxy["plugin-opts"]["path"] >>= path;
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -1310,7 +1310,7 @@ void explodeClash(Node yamlnode, std::vector<Proxy> &nodes) {
|
|||||||
pluginopts += pluginopts_host.empty() ? "" : ";obfs-host=" + pluginopts_host;
|
pluginopts += pluginopts_host.empty() ? "" : ";obfs-host=" + pluginopts_host;
|
||||||
break;
|
break;
|
||||||
case "v2ray-plugin"_hash:
|
case "v2ray-plugin"_hash:
|
||||||
pluginopts = "mode=" + pluginopts_mode + ";" + tls + pluginopts_mux;
|
pluginopts = "mode=" + pluginopts_mode + ";" + tls;
|
||||||
if (!pluginopts_host.empty())
|
if (!pluginopts_host.empty())
|
||||||
pluginopts += "host=" + pluginopts_host + ";";
|
pluginopts += "host=" + pluginopts_host + ";";
|
||||||
if (!path.empty())
|
if (!path.empty())
|
||||||
|
|||||||
Reference in new issue
Block a user