mirror of
https://github.com/golang/go
synced 2024-11-11 17:21:38 -07:00
move goResolver
Change-Id: I6bbe3a3efa2072a770261e13adc396f95b1c21d4
This commit is contained in:
parent
3643528a65
commit
8a8177b9af
@ -25,8 +25,6 @@ import (
|
||||
"golang.org/x/net/dns/dnsmessage"
|
||||
)
|
||||
|
||||
var goResolver = Resolver{PreferGo: true}
|
||||
|
||||
// Test address from 192.0.2.0/24 block, reserved by RFC 5737 for documentation.
|
||||
var TestAddr = [4]byte{0xc0, 0x00, 0x02, 0x01}
|
||||
|
||||
|
@ -20,6 +20,8 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
var goResolver = Resolver{PreferGo: true}
|
||||
|
||||
func hasSuffixFold(s, suffix string) bool {
|
||||
return strings.HasSuffix(strings.ToLower(s), strings.ToLower(suffix))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user