From 15a77fa71b8d9d285176ae0609d60df3963aa0de Mon Sep 17 00:00:00 2001 From: beyondkmp 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) {