pub fn scrub_ipv6(ip: Ipv6Addr) -> &'static str
Expand description
Scrub an IPv6 address.
ยงExamples
use std::net::Ipv6Addr;
use relay_event_normalization::span::description::{scrub_ipv6};
assert_eq!(scrub_ipv6(Ipv6Addr::LOCALHOST), "::1");
assert_eq!(scrub_ipv6(Ipv6Addr::new(8, 8, 8, 8, 8, 8, 8, 8)), "*:*:*:*:*:*:*:*");