mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
fix: auto-fill fingerprint for reality
This commit is contained in:
parent
2056e6336d
commit
16a57894bc
@ -335,7 +335,14 @@ namespace Configs {
|
||||
if (!fragment_fallback_delay.isEmpty()) object["fragment_fallback_delay"] = fragment_fallback_delay;
|
||||
if (record_fragment) object["record_fragment"] = record_fragment;
|
||||
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;
|
||||
return {object, ""};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user