ipmask

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ipmask reduces a client address to its network so a record can keep where a request came from without keeping who.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Network

func Network(ip string) string

Network returns the /24 (IPv4) or /64 (IPv6) network an address belongs to, in CIDR form, or "" when the input is not an address. A record that held the address keeps enough to show the request's origin for a dispute and no longer identifies the device.

Types

This section is empty.

Jump to

Keyboard shortcuts

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