From 272b3e924a552cecdbe7f332df39e9c2fe35e3cb Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Tue, 14 Jun 2022 11:26:04 +0800 Subject: [PATCH] Chore: add redir-host deprecated warnning --- hub/executor/executor.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hub/executor/executor.go b/hub/executor/executor.go index 9a9cc81b..dc1f8601 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -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)