Skip to content

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

pub fn is_public_address(address: IpAddr) -> bool

Allow only globally routable IPv4 and IPv6 unicast addresses.

Source: crates/calternal-api/src/public_address.rs:10