feat: port hopping delivery

This commit is contained in:
Misaka-blog
2023-10-26 14:53:07 +08:00
parent e2e066551c
commit bc83fc5700
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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"));