Support IPv6 for API

Support IPv6 for API
not sure here: looks better, but they prefer to use CONF.bla.