mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 13:04:37 +03:00
feat: port hopping delivery
This commit is contained in:
@@ -235,7 +235,7 @@ namespace NekoGui_fmt {
|
|||||||
q.addQueryItem("obfs", "salamander");
|
q.addQueryItem("obfs", "salamander");
|
||||||
q.addQueryItem("obfs-password", obfsPassword);
|
q.addQueryItem("obfs-password", obfsPassword);
|
||||||
}
|
}
|
||||||
// if (!hopPort.trimmed().isEmpty()) q.addQueryItem("mport", hopPort);
|
if (!hopPort.trimmed().isEmpty()) q.addQueryItem("mport", hopPort);
|
||||||
if (allowInsecure) q.addQueryItem("insecure", "1");
|
if (allowInsecure) q.addQueryItem("insecure", "1");
|
||||||
if (!sni.isEmpty()) q.addQueryItem("sni", sni);
|
if (!sni.isEmpty()) q.addQueryItem("sni", sni);
|
||||||
if (!q.isEmpty()) url.setQuery(q);
|
if (!q.isEmpty()) url.setQuery(q);
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ namespace NekoGui_fmt {
|
|||||||
name = url.fragment(QUrl::FullyDecoded);
|
name = url.fragment(QUrl::FullyDecoded);
|
||||||
serverAddress = url.host();
|
serverAddress = url.host();
|
||||||
serverPort = url.port();
|
serverPort = url.port();
|
||||||
// hopPort = query.queryItemValue("mport");
|
hopPort = query.queryItemValue("mport");
|
||||||
obfsPassword = query.queryItemValue("obfs-password");
|
obfsPassword = query.queryItemValue("obfs-password");
|
||||||
allowInsecure = QStringList{"1", "true"}.contains(query.queryItemValue("insecure"));
|
allowInsecure = QStringList{"1", "true"}.contains(query.queryItemValue("insecure"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user