diff --git a/src/generator/config/subexport.cpp b/src/generator/config/subexport.cpp index 99c1104..7107ab2 100644 --- a/src/generator/config/subexport.cpp +++ b/src/generator/config/subexport.cpp @@ -423,6 +423,7 @@ void proxyToClash(std::vector &nodes, YAML::Node &yamlnode, const ProxyGr singleproxy["grpc-opts"]["grpc-service-name"] = x.Path; break; case "ws"_hash: + singleproxy["network"] = x.TransferProtocol; singleproxy["ws-opts"]["path"] = x.Path; if(!x.Host.empty()) singleproxy["ws-opts"]["headers"]["Host"] = x.Host; diff --git a/src/parser/subparser.cpp b/src/parser/subparser.cpp index 471a9d8..3727fc8 100644 --- a/src/parser/subparser.cpp +++ b/src/parser/subparser.cpp @@ -1011,7 +1011,7 @@ void explodeClash(Node yamlnode, std::vector &nodes) switch(hash_(safe_as(singleproxy["plugin"]))) { case "obfs"_hash: - plugin = "simple-obfs"; + plugin = "obfs-local"; if(singleproxy["plugin-opts"].IsDefined()) { singleproxy["plugin-opts"]["mode"] >>= pluginopts_mode;