Upgraded validation for IPv6 support. Closes #371