gui: reality settings

This commit is contained in:
arm64v8a
2023-04-07 17:07:32 +09:00
parent 089acaebb5
commit 1d8fdc7a7d
9 changed files with 144 additions and 43 deletions

View File

@@ -41,6 +41,13 @@ namespace NekoRay::fmt {
{"fingerprint", fp},
};
}
if (!reality_pbk.trimmed().isEmpty()) {
tls["reality"] = QJsonObject{
{"enabled", true},
{"public_key", reality_pbk},
{"short_id", reality_sid},
};
}
outbound->insert("tls", tls);
}