Documentation
¶
Overview ¶
Package netutil contains network-related utilities common among dnsproxy packages.
TODO(a.garipov): Move improved versions of these into netutil in module golibs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHostsPaths ¶
DefaultHostsPaths returns the slice of default paths to system hosts files.
TODO(s.chzhen): Since [fs.FS] is no longer needed, update the hostsfile.DefaultHostsPaths from golibs.
func ParseSubnet ¶
ParseSubnet parses s either as a CIDR prefix itself, or as an IP address, returning the corresponding single-IP CIDR prefix.
TODO(e.burkov): Replace usages with netutil.Prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.