netutil

package
v0.32.0 Latest Latest
Warning

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

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

Documentation

Overview

Package netutil provides shared network utilities for IP classification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIP

func CheckIP(ip net.IP) string

CheckIP reports whether ip is a reserved address that should not be contacted by an outbound HTTP client. Returns an empty string if the IP is safe, or a human-readable reason if it is blocked.

func IsInternal

func IsInternal(ip net.IP) bool

IsInternal is a convenience wrapper that returns true if ip is reserved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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