Chore: log dns server address when success

This commit is contained in:
Dreamacro 2019-02-02 21:37:36 +08:00
parent b594cbc68d
commit 1016355ef6

View file

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