maximum elegance

for ipv4/ipv6 validation