added support for listening on ipv6 addresses