Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a authored and xchacha20-poly1305 committed Oct 5, 2023
1 parent 6038f43 commit 5b42694
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fmt/Link2Bean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ namespace NekoGui_fmt {
// https://hysteria.network/docs/uri-scheme/
if (!query.hasQueryItem("upmbps") || !query.hasQueryItem("downmbps")) return false;

name = url.fragment();
name = url.fragment(QUrl::FullyDecoded);
serverAddress = url.host();
serverPort = url.port();
hopPort = query.queryItemValue("mport");
Expand Down Expand Up @@ -273,7 +273,7 @@ namespace NekoGui_fmt {
// by daeuniverse
// https://github.com/daeuniverse/dae/discussions/182

name = url.fragment();
name = url.fragment(QUrl::FullyDecoded);
serverAddress = url.host();
if (serverPort == -1) serverPort = 443;
serverPort = url.port();
Expand All @@ -288,7 +288,7 @@ namespace NekoGui_fmt {
allowInsecure = query.queryItemValue("allow_insecure") == "1";
disableSni = query.queryItemValue("disable_sni") == "1";
} else if (QStringList{"hy2", "hysteria2"}.contains(url.scheme())) {
name = url.fragment();
name = url.fragment(QUrl::FullyDecoded);
serverAddress = url.host();
serverPort = url.port();
// hopPort = query.queryItemValue("mport");
Expand Down

0 comments on commit 5b42694

Please sign in to comment.