mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
fix: auto-fill fingerprint for reality
This commit is contained in:
parent
8d6e3e213c
commit
c704f53e34
@ -335,7 +335,14 @@ namespace Configs {
|
|||||||
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 (auto obj = ech->Build().object;!obj.isEmpty()) object["ech"] = obj;
|
if (auto obj = ech->Build().object;!obj.isEmpty()) object["ech"] = obj;
|
||||||
if (auto obj = utls->Build().object;!obj.isEmpty()) object["utls"] = obj;
|
if (auto obj = utls->Build().object;!obj.isEmpty()) {
|
||||||
|
object["utls"] = obj;
|
||||||
|
} else if (reality->enabled) {
|
||||||
|
object["utls"] = QJsonObject{
|
||||||
|
{"enabled", true},
|
||||||
|
{"fingerprint", "random"},
|
||||||
|
};
|
||||||
|
}
|
||||||
if (auto obj = reality->Build().object;!obj.isEmpty()) object["reality"] = obj;
|
if (auto obj = reality->Build().object;!obj.isEmpty()) object["reality"] = obj;
|
||||||
return {object, ""};
|
return {object, ""};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user