resinit

package
v0.0.0-...-78fffcb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 3 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResInitIfDNSError

func ResInitIfDNSError(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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL