pub fn is_public(ip_addr: IpAddr) -> boolExpand description
Check if an IP address is a public/routable one.
If the HOPR_INTERNAL_TRANSPORT_ACCEPT_PRIVATE_NETWORK_IP_ADDRESSES env variable
is set to true, this function always returns true to allow private addresses for
local development and testing.