feat: choose final DNS out (#872)

This commit is contained in:
XSalsa20-Poly1305
2023-09-10 10:27:03 +08:00
committed by GitHub
parent 39288bd804
commit 65259e6097
8 changed files with 53 additions and 3 deletions

View File

@@ -328,7 +328,7 @@ namespace NekoGui {
{"queryStrategy", dataStore->routing->direct_dns_strategy},
{"domains", QList2QJsonArray<QString>(status->domainListDNSDirect)},
};
if (dataStore->routing->def_outbound == "bypass") {
if (dataStore->routing->dns_final_out == "bypass") {
dnsServers.prepend(directObj);
} else {
dnsServers.append(directObj);
@@ -867,7 +867,7 @@ namespace NekoGui {
{"address", directDNSAddress.replace("+local://", "://")},
{"detour", "direct"},
};
if (dataStore->routing->def_outbound == "bypass") {
if (dataStore->routing->dns_final_out == "bypass") {
dnsServers.prepend(directObj);
} else {
dnsServers.append(directObj);