From c56a90cb0cefb3120f87b17681a649ce0b6e3fd5 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sun, 6 Jan 2019 14:31:42 +0800 Subject: [PATCH] Fix: print log when start dns server failed (#87) --- hub/executor/executor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hub/executor/executor.go b/hub/executor/executor.go index fb6372e3..116b0dd8 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -55,7 +55,9 @@ func updateDNS(c *config.DNS) { EnhancedMode: c.EnhancedMode, }) 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) {