Documentation
¶
Overview ¶
Package netutil holds small network-address helpers shared by the CLI and the startup auth guard. It depends only on the standard library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLoopback ¶
IsLoopback reports whether addr binds only the loopback interface. An empty host (e.g. ":8080") or an unspecified one (e.g. "0.0.0.0:8080") binds all interfaces and is therefore not loopback. An unparseable addr is treated as non-loopback (fail safe).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.