Added IPv6 localhost '::1' to the default whitelisted_ips

* Added IPv6 localhost '::1' to the default whitelisted_ips
* Added test to check inclusion of '::1'