From 378d59b045b02ec6991e6455352cfe986187b411 Mon Sep 17 00:00:00 2001 From: Nova Date: Wed, 22 Oct 2025 03:22:46 +0330 Subject: [PATCH] Revert "Override local to dhcp for macOS Tun mode" DHCP is not reliable, so we need another method for this This reverts commit 16d951eed12556643f1382b0a67315a219382608. --- src/configs/ConfigBuilder.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/configs/ConfigBuilder.cpp b/src/configs/ConfigBuilder.cpp index d0385c6..0939188 100644 --- a/src/configs/ConfigBuilder.cpp +++ b/src/configs/ConfigBuilder.cpp @@ -423,12 +423,8 @@ namespace Configs { QJsonObject BuildDnsObject(QString address, bool tunEnabled) { bool usingSystemdResolved = false; - bool isDarwin = false; #ifdef Q_OS_LINUX usingSystemdResolved = ReadFileText("/etc/resolv.conf").contains("systemd-resolved"); -#endif -#ifdef Q_OS_MACOS - isDarwin = true; #endif if (address.startsWith("local")) { @@ -438,13 +434,6 @@ namespace Configs { {"type", "underlying"} }; } - if (tunEnabled && isDarwin) - { - MW_show_log(R"(DNS has been overriden to dhcp, if it does not work, please change both "Routing settings->Direct DNS" and "basic settings->Core->Core options->underlying dns" to something other than local)"); - return { - {"type", "dhcp"} - }; - } return { {"type", "local"} };