Skip to main content

throttle_key

Function throttle_key 

Source
pub fn throttle_key(addr: IpAddr) -> IpAddr
Expand description

Collapses an address to the identity a throttle should count.

IPv4 is used as-is; IPv6 is truncated to [IPV6_CLIENT_PREFIX] so host rotation inside one allocation cannot mint fresh budgets.