netutil

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package netutil provides address checks for outbound HTTP requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockedIP

func BlockedIP(ip net.IP) bool

BlockedIP reports whether ip is disallowed for outbound HTTP requests. It rejects invalid, private, local and selected special-purpose addresses. Tunneling prefixes are blocked conservatively, including their public destinations. Standard NAT64 uses the embedded IPv4 policy so public destinations remain usable. Network-specific translation and routing cannot be inferred from an IP address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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