Kantoor. IP
(Kantoor v1.0.0)
IP address normalisation for throttling keys. IPv4-mapped IPv6 becomes IPv4; other IPv6 addresses collapse to their /64, because one subscriber usually controls a whole /64 and could otherwise rotate addresses for free.
Summary
Functions
The address as plain text (not truncated), for display such as last_used_ip.
A canonical string for a tuple or string address; "unknown" if unusable.