diff --git a/dns/server.go b/dns/server.go index 49d4541a..db903349 100644 --- a/dns/server.go +++ b/dns/server.go @@ -60,6 +60,10 @@ func ReCreateServer(addr string, resolver *Resolver, mapper *ResolverEnhancer) { address = "" } + if addr == "" { + return + } + var err error defer func() { if err != nil {