From d237b041b3b9f702897ca3aedd0401ab309a60c3 Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> Date: Wed, 5 Jan 2022 11:41:31 +0800 Subject: [PATCH] Fix: ignore empty dns server error --- dns/server.go | 4 ++++ 1 file changed, 4 insertions(+) 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 {