mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +03:00
update core 1.9.3
This commit is contained in:
@@ -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"},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user