Support IPv6 for API

Support IPv6 for API
seriously asymmetric- look at cidr!