News for hackers. Stuff that matters.
Re:Potholes to avoid when migrating to IPv6 by throwaway12iii on Monday December 31, 2018 @05:32AM (#18793949)
Obviously the point of the article is to not manually parse ip addresses.

Well actually, python can do that just as well as all the other languages.

    >>> import ipaddress
    >>> ipaddress.ip_address('2001:db8::')
    IPv6Address('2001:db8::')
Re:Potholes to avoid when migrating to IPv6 by throwaway12iii on Monday December 31, 2018 @05:55AM (#18794019)
Actually, in Java you can just use InetAddress.getByName.
Re:Potholes to avoid when migrating to IPv6 by throwaway12iii on Monday December 31, 2018 @05:57AM (#18794022)
man 3 getaddrinfo
Re:Potholes to avoid when migrating to IPv6 by throwaway12iii on Monday December 31, 2018 @05:36AM (#18793960)
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));