Skip to content

Commit

Permalink
Fix: ignore empty dns server error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed Jan 5, 2022
1 parent 3cb87e0 commit d237b04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dns/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func ReCreateServer(addr string, resolver *Resolver, mapper *ResolverEnhancer) {
address = ""
}

if addr == "" {
return
}

var err error
defer func() {
if err != nil {
Expand Down

0 comments on commit d237b04

Please sign in to comment.