Fix TLS sub-object conditions

This commit is contained in:
Nova 2025-12-03 00:22:52 +03:30
parent 6496a2b3ac
commit ac19dddaf7

View File

@ -334,9 +334,9 @@ namespace Configs {
if (fragment) object["fragment"] = fragment; if (fragment) object["fragment"] = fragment;
if (!fragment_fallback_delay.isEmpty()) object["fragment_fallback_delay"] = fragment_fallback_delay; if (!fragment_fallback_delay.isEmpty()) object["fragment_fallback_delay"] = fragment_fallback_delay;
if (record_fragment) object["record_fragment"] = record_fragment; if (record_fragment) object["record_fragment"] = record_fragment;
if (ech->enabled) object["ech"] = ech->Build().object; if (auto obj = ech->Build().object;!obj.isEmpty()) object["ech"] = obj;
if (utls->enabled) object["utls"] = utls->Build().object; if (auto obj = utls->Build().object;!obj.isEmpty()) object["utls"] = obj;
if (reality->enabled) object["reality"] = reality->Build().object; if (auto obj = reality->Build().object;!obj.isEmpty()) object["reality"] = obj;
return {object, ""}; return {object, ""};
} }
} }