Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfDNSError ¶
func IfDNSError(err error)
Work around a glibc bug where cached configs from /etc/resolv.conf can cause DNS failures after the network changes. This is a no-op on non-Linux platforms. See implementation details in resinit_linux.go. The Rust standard library contains a similar workaround: https://github.com/rust-lang/rust/blob/028569ab1b/src/libstd/sys_common/net.rs#L186-L190
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.