Chore: add redir-host deprecated warnning
This commit is contained in:
parent
9bd57b99cc
commit
272b3e924a
1 changed files with 5 additions and 0 deletions
|
@ -130,6 +130,11 @@ func updateDNS(c *config.DNS) {
|
||||||
Policy: c.NameServerPolicy,
|
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)
|
r := dns.NewResolver(cfg)
|
||||||
m := dns.NewEnhancer(cfg)
|
m := dns.NewEnhancer(cfg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue