Fix logging messages for IPv6 addresses

Fix for GGUS ticket 106665
https://ggus.eu/index.php?mode=ticket_info&ticket_id=106665