netutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

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

func IsLoopback(addr string) bool

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.

Jump to

Keyboard shortcuts

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