mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
Chore: add redir-host deprecated warnning
This commit is contained in:
parent
e0c5a85314
commit
fbb27b84d1
|
@ -130,6 +130,11 @@ func updateDNS(c *config.DNS) {
|
|||
Policy: c.NameServerPolicy,
|
||||
}
|
||||
|
||||
// deprecated warnning
|
||||
if cfg.EnhancedMode == C.DNSMapping {
|
||||
log.Warnln("[DNS] %s is deprecated, please use %s instead", cfg.EnhancedMode.String(), C.DNSFakeIP.String())
|
||||
}
|
||||
|
||||
r := dns.NewResolver(cfg)
|
||||
m := dns.NewEnhancer(cfg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user