mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 09:43:45 +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;
|
||||
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())
|
||||
|
||||
Reference in new issue
Block a user