Correctly log IPv6 addresses

Currently MySecureShell does not log hostname or IP-addresses for IPv6 connections (IP/hostname field is just empty). This PR fixes that.