Inject the IP version instead of making it a parameter.