gui: VLESS Flow

This commit is contained in:
arm64v8a
2023-04-09 12:58:23 +09:00
parent 4fbb13248a
commit d6de7e4aff
6 changed files with 51 additions and 3 deletions

View File

@@ -39,6 +39,7 @@ namespace NekoRay::fmt {
if (!stream->sni.isEmpty()) query.addQueryItem("sni", stream->sni);
if (stream->allow_insecure) query.addQueryItem("allowInsecure", "1");
if (IS_NEKO_BOX && !stream->utlsFingerprint.isEmpty()) query.addQueryItem("fp", stream->utlsFingerprint);
if (security == "reality") {
query.addQueryItem("pbk", stream->reality_pbk);
@@ -60,6 +61,13 @@ namespace NekoRay::fmt {
}
}
// protocol
if (proxy_type == proxy_VLESS) {
if (!flow.isEmpty()) {
query.addQueryItem("flow", flow);
}
}
url.setQuery(query);
return url.toString(QUrl::FullyEncoded);
}