Skip to content

Commit

Permalink
fix: dns upstream lookback case
Browse files Browse the repository at this point in the history
  • Loading branch information
wweir authored Apr 5, 2022
1 parent c0b77da commit b1f152c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (r *Router) dialDNSConn() {
Str("DNS", server).
Str("fallback", r.dns.fallbackDNS).
Msg("get DNS server")
if server == "" {
if server == "" || server == r.dns.serveIP.String() {
server = r.dns.fallbackDNS
}

Expand Down

0 comments on commit b1f152c

Please sign in to comment.