mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
fix naive link
This commit is contained in:
@@ -136,6 +136,9 @@ namespace NekoRay::fmt {
|
||||
auto url = QUrl(link);
|
||||
if (!url.isValid()) return false;
|
||||
|
||||
protocol = url.scheme().replace("naive+", "");
|
||||
if (protocol != "https" && protocol != "quic") return false;
|
||||
|
||||
name = url.fragment(QUrl::FullyDecoded);
|
||||
serverAddress = url.host();
|
||||
serverPort = url.port();
|
||||
|
||||
Reference in New Issue
Block a user