calternal_api::public_address
Shared public-address classification for outbound requests (#431, #726).
This is the webcal guard, extracted without changing its address policy. Callers must check every DNS answer, pin accepted answers to the connection, bound DNS/network time and recheck each redirect or refuse all redirects.
Source: crates/calternal-api/src/public_address.rs
Functions
Section titled “Functions”is_public_address
Section titled “is_public_address”pub fn is_public_address(address: IpAddr) -> boolAllow only globally routable IPv4 and IPv6 unicast addresses.