Skip to content

Commit

Permalink
switch from dhcp://system to system://
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Sep 11, 2024
1 parent e834d67 commit a04c188
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/golang/native/config/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/metacubex/mihomo/log"

"github.com/metacubex/mihomo/config"
"github.com/metacubex/mihomo/dns"
)

var processors = []processor{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a04c188

Please sign in to comment.