Update subexport.cpp

This commit is contained in:
greatcoolge authored and GitHub committed 2025-11-06 18:15:54 +08:00
1 parent add52ec9cb
commit de562cbf56
1 file changed
+1 -1
+1 -1
View File
@@ -2774,7 +2774,7 @@ proxyToSingBox(std::vector<Proxy> &nodes, rapidjson::Document &json,
tls.AddMember("insecure", buildBooleanValue(scv), allocator); tls.AddMember("insecure", buildBooleanValue(scv), allocator);
proxy.AddMember("tls", tls, allocator); proxy.AddMember("tls", tls, allocator);
} }
if (!x.FakeType.empty()) if (!x.FakeType.empty() && x.FakeType != "none")
proxy.AddMember("network", rapidjson::StringRef(x.FakeType.c_str()), allocator); proxy.AddMember("network", rapidjson::StringRef(x.FakeType.c_str()), allocator);
if (!x.OBFSParam.empty()) if (!x.OBFSParam.empty())
proxy.AddMember("obfs", rapidjson::StringRef(x.OBFSParam.c_str()), allocator); proxy.AddMember("obfs", rapidjson::StringRef(x.OBFSParam.c_str()), allocator);