Skip to content

Commit

Permalink
Fix bestTry logic
Browse files Browse the repository at this point in the history
  • Loading branch information
wweir committed Dec 2, 2018
1 parent 1c45fae commit fe0ccdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/sower.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ blocklist=[
"*.atlassian.net", # atlassian
"*.atlassian.com",
"*.prod.public.atl-paas.net",
"*.cloudfront.net",
"*.cloudfront.net",
"*.golang.org", # golang
"go.googlesource.com",
"gist.github.com",
"gist.github.com",
"*.k8s.io",
"*.wikipedia.org", # wikipeida
"*.wikimedia.org",
Expand Down
1 change: 1 addition & 0 deletions dns/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func bestTry(w dns.ResponseWriter, r *dns.Msg, domain, dnsServer string) {
ip = "[" + msg.Answer[0].(*dns.AAAA).AAAA.String() + "]"
default:
w.WriteMsg(msg)
return
}

if _, err := net.DialTimeout("tcp", ip+":http", time.Second); err != nil {
Expand Down

0 comments on commit fe0ccdf

Please sign in to comment.