Add ability to select usage of IPv4/IPv6 via config, repository config or command line