Fix printing ipv6 addresses with identd

Closes #639