fix: vless xray link parsing (#1050)

* fix: vlessxray: Fully decode xhttp path

xhttp path may contain /

* fix: useXrayVless: encryption may be empty string

According to 3x-ui generated url
This commit is contained in:
PRESFIL 2025-12-26 16:00:22 +00:00 committed by GitHub
parent f66488e9b4
commit da4e25d6c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -52,8 +52,8 @@ namespace Configs
if (query.queryItemValue("type") == "xhttp"
|| query.queryItemValue("security") == "reality"
|| query.queryItemValue("encryption") != "none"
|| (query.queryItemValue("encryption") != "none" && query.queryItemValue("encryption") != "")
|| query.queryItemValue("extra") != "") return true;
return false;
}
}
}

View File

@ -205,7 +205,7 @@ namespace Configs {
auto query = QUrlQuery(url.query());
if (query.hasQueryItem("host")) host = query.queryItemValue("host");
if (query.hasQueryItem("path")) path = query.queryItemValue("path");
if (query.hasQueryItem("path")) path = query.queryItemValue("path", QUrl::FullyDecoded);
if (query.hasQueryItem("mode")) mode = query.queryItemValue("mode");
if (query.hasQueryItem("extra")) ParseExtraJson(query.queryItemValue("extra", QUrl::FullyDecoded));
if (query.hasQueryItem("headers")) headers = query.queryItemValue("headers").split(",");