update core 1.9.3

This commit is contained in:
armv9
2024-07-02 12:02:34 +09:00
parent 8a2eab506f
commit 961112ea5b
12 changed files with 200 additions and 206 deletions

View File

@@ -7,8 +7,7 @@
#include <QFile>
#include <QFileInfo>
#define BOX_UNDERLYING_DNS dataStore->core_box_underlying_dns.isEmpty() ? "underlying://0.0.0.0" : dataStore->core_box_underlying_dns
#define BOX_UNDERLYING_DNS_EXPORT dataStore->core_box_underlying_dns.isEmpty() ? (status->forExport ? "local" : "underlying://0.0.0.0") : dataStore->core_box_underlying_dns
#define BOX_UNDERLYING_DNS dataStore->core_box_underlying_dns.isEmpty() ? "local" : dataStore->core_box_underlying_dns
namespace NekoGui {
@@ -847,7 +846,6 @@ namespace NekoGui {
// Direct
auto directDNSAddress = dataStore->routing->direct_dns;
if (directDNSAddress == "localhost") directDNSAddress = BOX_UNDERLYING_DNS_EXPORT;
if (!status->forTest) {
QJsonObject directObj{
{"tag", "dns-direct"},
@@ -883,10 +881,10 @@ namespace NekoGui {
};
}
// Underlying 100% Working DNS
// Underlying 100% Working DNS ?
dnsServers += QJsonObject{
{"tag", "dns-local"},
{"address", BOX_UNDERLYING_DNS_EXPORT},
{"address", BOX_UNDERLYING_DNS},
{"detour", "direct"},
};