mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
refactor: show default fingerprint in ui
Not add it to configuration in slient. fix(sub): add fingerprint for vmess
This commit is contained in:
committed by
arm64v8a
parent
6029b4236f
commit
a2fe70509b
@@ -52,14 +52,14 @@ namespace NekoGui_fmt {
|
||||
if (!alpn.trimmed().isEmpty()) {
|
||||
tls["alpn"] = QList2QJsonArray(alpn.split(","));
|
||||
}
|
||||
auto fp = utlsFingerprint.isEmpty() ? NekoGui::dataStore->utlsFingerprint : utlsFingerprint;
|
||||
QString fp = utlsFingerprint;
|
||||
if (!reality_pbk.trimmed().isEmpty()) {
|
||||
tls["reality"] = QJsonObject{
|
||||
{"enabled", true},
|
||||
{"public_key", reality_pbk},
|
||||
{"short_id", reality_sid.split(",")[0]},
|
||||
};
|
||||
if (fp.isEmpty()) fp = "chrome";
|
||||
if (fp.isEmpty()) fp = "random";
|
||||
}
|
||||
if (!fp.isEmpty()) {
|
||||
tls["utls"] = QJsonObject{
|
||||
|
||||
Reference in New Issue
Block a user