This commit is contained in:
arm64v8a
2023-01-03 09:23:18 +09:00
parent 4e129a920b
commit 492552c722
2 changed files with 2 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ namespace NekoRay {
QString ProxyEntity::DisplayLatency() const { QString ProxyEntity::DisplayLatency() const {
if (latency < 0) { if (latency < 0) {
return UNICODE_LRO + QObject::tr("Unavailable"); return QObject::tr("Unavailable");
} else if (latency > 0) { } else if (latency > 0) {
return UNICODE_LRO + QString("%1 ms").arg(latency); return UNICODE_LRO + QString("%1 ms").arg(latency);
} else { } else {

View File

@@ -32,6 +32,7 @@ namespace NekoRay::fmt {
url.setPort(serverPort); url.setPort(serverPort);
if (!name.isEmpty()) url.setFragment(name); if (!name.isEmpty()) url.setFragment(name);
if (!stream->sni.isEmpty()) query.addQueryItem("sni", stream->sni); if (!stream->sni.isEmpty()) query.addQueryItem("sni", stream->sni);
if (stream->allow_insecure) query.addQueryItem("allowInsecure", "1");
query.addQueryItem("security", stream->security); query.addQueryItem("security", stream->security);
query.addQueryItem("type", stream->network); query.addQueryItem("type", stream->network);