Fix for IPv6 support.

This commit fixes an issue with the URL when the server is bound to an IPv6 address.
Note that this fix is not sufficient to make attester fully support IPv6 addresses, as socket.io has some issues too.