Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dialer = &net.Dialer{ Resolver: &net.Resolver{ PreferGo: true, Dial: func(ctx context.Context, network, address string) (net.Conn, error) { d := ParallelDialer{} d.Timeout = 10 * time.Second l := zerolog.New(io.Discard) return d.DialContext(ctx, "udp", []string{v4BootstrapDNS, v6BootstrapDNS}, &l) }, }, }
Functions ¶
func IPv6Available ¶
IPv6Available is like SupportsIPv6, but always do the check without caching.
func IsLinkLocalUnicastIPv6 ¶ added in v1.3.6
IsLinkLocalUnicastIPv6 checks if the provided IP is a link local unicast v6 address.
func IsUnreachable ¶ added in v1.5.4
IsUnreachable reports whether err indicates the destination network or host has no route (ENETUNREACH/EHOSTUNREACH). These are the errors produced when an endpoint's address family is available locally but unroutable, e.g. an IPv6 DoH endpoint while the host has IPv6 but no route to it.
func SupportsIPv6ListenLocal ¶
func SupportsIPv6ListenLocal() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.