From 1016355ef6a134d253586f39d871f094c1d8b5e9 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Sat, 2 Feb 2019 21:37:36 +0800 Subject: [PATCH] Chore: log dns server address when success --- hub/executor/executor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hub/executor/executor.go b/hub/executor/executor.go index 116b0dd8..390d4304 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -57,7 +57,9 @@ func updateDNS(c *config.DNS) { T.Instance().SetResolver(r) if err := dns.ReCreateServer(c.Listen, r); err != nil { log.Errorln("Start DNS server error: %s", err.Error()) + return } + log.Infoln("DNS server listening at: %s", c.Listen) } func updateProxies(proxies map[string]C.Proxy) {