switch from dhcp://system to system://

This commit is contained in:
wwqgtxx 2024-09-11 16:30:31 +08:00
parent e834d67922
commit a04c1883fa

View File

@ -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