move goResolver

Change-Id: I6bbe3a3efa2072a770261e13adc396f95b1c21d4
This commit is contained in:
Mateusz Poliwczak 2024-04-13 08:27:14 +02:00
parent 3643528a65
commit 8a8177b9af
2 changed files with 2 additions and 2 deletions

View file

@ -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}

View file

@ -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))
}