instead of enable_ipv6, perhaps we can have config contain the list of preferences, with a default to [ipv4]?