Add support for forcing IPv4 or IPv6