Versions in this module Expand all Collapse all v1 v1.54.2 Nov 23, 2026 Changes in this version + var ErrBlockedAddress = errors.New("blocked destination address") + func BlockInternal(_, address string, _ syscall.RawConn) error + func CheckHost(host string) error + func IsBlockedIP(ip net.IP) bool + func NewDialControl(blockPrivate bool, blocked, allowed []netip.Prefix) func(network, address string, c syscall.RawConn) error + func ParseCIDR(cidr string) (netip.Prefix, error) + func ReportOnly(control func(network, address string, c syscall.RawConn) error, ...) func(network, address string, c syscall.RawConn) error + func ReportOnlyContext(control func(network, address string, c syscall.RawConn) error, ...) func(ctx context.Context, network, address string, c syscall.RawConn) error