Fix logging of IPv6 addresses