Fix: print log when start dns server failed (#87)

This commit is contained in:
gVisor bot 2019-01-06 14:31:42 +08:00
parent e997a02260
commit c56a90cb0c

View file

@ -55,7 +55,9 @@ func updateDNS(c *config.DNS) {
EnhancedMode: c.EnhancedMode, EnhancedMode: c.EnhancedMode,
}) })
T.Instance().SetResolver(r) T.Instance().SetResolver(r)
dns.ReCreateServer(c.Listen, r) if err := dns.ReCreateServer(c.Listen, r); err != nil {
log.Errorln("Start DNS server error: %s", err.Error())
}
} }
func updateProxies(proxies map[string]C.Proxy) { func updateProxies(proxies map[string]C.Proxy) {