mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
update to latest github.com/mjl-/adns, synced to go1.24.1
This commit is contained in:
20
vendor/github.com/mjl-/adns/dnsconfig.go
generated
vendored
20
vendor/github.com/mjl-/adns/dnsconfig.go
generated
vendored
@ -10,10 +10,22 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
defaultNS = []string{"127.0.0.1:53", "[::1]:53"}
|
||||
getHostname = os.Hostname // variable for testing
|
||||
)
|
||||
// defaultNS is the default name servers to use in the absence of DNS configuration.
|
||||
//
|
||||
// defaultNS should be an internal detail,
|
||||
// but widely used packages access it using linkname.
|
||||
// Notable members of the hall of shame include:
|
||||
// - github.com/pojntfx/hydrapp/hydrapp
|
||||
// - github.com/mtibben/androiddnsfix
|
||||
// - github.com/metacubex/mihomo
|
||||
//
|
||||
// Do not remove or change the type signature.
|
||||
// See go.dev/issue/67401.
|
||||
//
|
||||
// disabled: go:linkname defaultNS
|
||||
var defaultNS = []string{"127.0.0.1:53", "[::1]:53"}
|
||||
|
||||
var getHostname = os.Hostname // variable for testing
|
||||
|
||||
type dnsConfig struct {
|
||||
servers []string // server addresses (in host:port form) to use
|
||||
|
Reference in New Issue
Block a user