mirror of
https://github.com/wweir/sower.git
synced 2024-04-21 12:42:15 +00:00
Fix bestTry logic
This commit is contained in:
+2
-2
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user