From a04c1883faf0f6994da03a08421bcc49a50f405b Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Wed, 11 Sep 2024 16:30:31 +0800 Subject: [PATCH] switch from `dhcp://system` to `system://` --- core/src/main/golang/native/config/process.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/golang/native/config/process.go b/core/src/main/golang/native/config/process.go index df019214..606c0782 100644 --- a/core/src/main/golang/native/config/process.go +++ b/core/src/main/golang/native/config/process.go @@ -14,7 +14,6 @@ import ( "github.com/metacubex/mihomo/log" "github.com/metacubex/mihomo/config" - "github.com/metacubex/mihomo/dns" ) var processors = []processor{ @@ -70,7 +69,7 @@ func patchDns(cfg *config.RawConfig, _ string) error { } if cfg.ClashForAndroid.AppendSystemDNS { - cfg.DNS.NameServer = append(cfg.DNS.NameServer, "dhcp://"+dns.SystemDNSPlaceholder) + cfg.DNS.NameServer = append(cfg.DNS.NameServer, "system://") } return nil