http: add support for specifying ipv4/ipv6 preference