mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +03:00
fix: h2 -> http
fix: edit profile ui
This commit is contained in:
@@ -33,9 +33,9 @@ namespace NekoRay::fmt {
|
||||
if (!name.isEmpty()) url.setFragment(UrlSafe_encode(name));
|
||||
if (!stream->sni.isEmpty()) query.addQueryItem("sni", stream->sni);
|
||||
query.addQueryItem("security", "tls");
|
||||
query.addQueryItem("type", stream->network.replace("h2", "http"));
|
||||
query.addQueryItem("type", stream->network);
|
||||
|
||||
if (stream->network == "ws" || stream->network == "h2") {
|
||||
if (stream->network == "ws" || stream->network == "http") {
|
||||
if (!stream->path.isEmpty()) query.addQueryItem("path", stream->path);
|
||||
if (!stream->host.isEmpty()) query.addQueryItem("host", stream->host);
|
||||
} else if (stream->network == "grpc") {
|
||||
|
||||
Reference in New Issue
Block a user