mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +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
@@ -43,9 +43,8 @@ namespace NekoGui_fmt {
|
||||
}
|
||||
|
||||
if (security == "tls") {
|
||||
auto fp = utlsFingerprint.isEmpty() ? NekoGui::dataStore->utlsFingerprint : utlsFingerprint;
|
||||
QJsonObject tls;
|
||||
if (!fp.isEmpty()) tls["fingerprint"] = fp;
|
||||
if (!utlsFingerprint.isEmpty()) tls["fingerprint"] = utlsFingerprint;
|
||||
if (!sni.trimmed().isEmpty()) tls["serverName"] = sni;
|
||||
if (reality_pbk.trimmed().isEmpty()) {
|
||||
if (allow_insecure || NekoGui::dataStore->skip_cert) tls["allowInsecure"] = true;
|
||||
@@ -65,7 +64,7 @@ namespace NekoGui_fmt {
|
||||
tls["publicKey"] = reality_pbk;
|
||||
tls["shortId"] = reality_sid;
|
||||
tls["spiderX"] = reality_spx;
|
||||
if (fp.isEmpty()) tls["fingerprint"] = "chrome";
|
||||
if (utlsFingerprint.isEmpty()) tls["fingerprint"] = "chrome";
|
||||
streamSettings["realitySettings"] = tls;
|
||||
streamSettings["security"] = "reality";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user