From 45037114e3c8ffe012e9857414cbd424829ebce9 Mon Sep 17 00:00:00 2001 From: gVisor bot 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 {