Skip to main content

Module address

Module address 

Source
Expand description

Private address checks for attachment downloads and webhook hosts.

address-registry.txt is a snapshot of the IANA IPv4 and IPv6 registries: https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml Both <updated> values were 2025-10-09 when checked on 2026-09-25. Refresh the snapshot when either <updated> value changes. A longer entry overrides its parent entry.

Constants§

NAT64_DISCOVERY_NAME
RFC 7050 §2.2: a DNS64 synthesizes this name’s AAAA under its NAT64 prefix.

Functions§

discover_nat64
The prefixes in a NAT64_DISCOVERY_NAME answer. No lookup, a failed one, or one slower than 5 seconds adds no prefix.
is_private
Return true for an address that must not be reached by a default client.
is_private_behind
is_private, or under a discovered NAT64 prefix with a private IPv4 address.