3 ms·
Why don't you rewrite that in rust? use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; let localhost_v6 = IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1));
by throwaway12iii 8y ago
Why don't you rewrite that in rust?
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
let localhost_v6 = IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1));
assert_eq!("::1".parse(), Ok(localhost_v6));