mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
Fix TLS sub-object conditions
This commit is contained in:
parent
6496a2b3ac
commit
ac19dddaf7
@ -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, ""};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user