netaddr

package
v0.7.44-dev.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package netaddr is the runner's one rule for a public address: the ranges web_read, the input-source proxy and the browse proxy never connect to, among them the 6to4 relay anycast range, Azure's wireserver, the IPv6 discard prefix and site-local space, and an ISATAP address that carries an IPv4 address that is not public.

Part of the embedded runner-image build context: stdlib-only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Network

func Network(a netip.Addr) bool

Network says whether a is an address a person may have named as their own network: a public one, or one in private space (10/8, 172.16/12, 192.168/16, fc00::/7), shared space (100.64/10, where a tailnet's addresses live) or loopback. It is wider than Public by exactly those ranges. Link-local space stays out (169.254/16 and fe80::/10, where cloud metadata answers), as does everything else Public refuses (unspecified, multicast, documentation, reserved, transition ranges that embed another address, and Azure's wireserver).

func Public

func Public(a netip.Addr) bool

Public says whether a is an address on the public internet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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