Add insecure for tuic in singbox.

This commit is contained in:
asdlokj1qpi23
2024-07-18 09:28:13 +08:00
parent 6854ea4923
commit e9c39481df

View File

@@ -2508,6 +2508,9 @@ proxyToSingBox(std::vector<Proxy> &nodes, rapidjson::Document &json, std::vector
if (!x.TLSSecure && !x.Alpn.empty()) {
rapidjson::Value tls(rapidjson::kObjectType);
tls.AddMember("enabled", true, allocator);
if(!scv.is_undef()){
tls.AddMember("insecure", buildBooleanValue(scv), allocator);
}
if (!x.ServerName.empty())
tls.AddMember("server_name", rapidjson::StringRef(x.ServerName.c_str()), allocator);
if (!x.Alpn.empty()) {