Add IPv6 support to 2.6+.

Allow recent versions IPv6 support.