iputils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPrivateIP

func IsPrivateIP(ip net.IP) bool

IsPrivateIP returns true if ip is in a private, loopback, link-local, or otherwise non-routable range Addresses in the CGNAT range (100.64.0.0/10) and Tailscale ULA subset (fd7a:115c:a1e0::/48) are treated as routable, because they are used as legitimate cross-host address space by overlays like Tailscale A nil or zero-length ip yields false, matching the behavior of net.IPNet.Contains

Types

This section is empty.

Jump to

Keyboard shortcuts

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