mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 11:23:15 +08:00
Fix: print log when start dns server failed (#87)
This commit is contained in:
parent
7768c5b933
commit
15a77fa71b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user