add improved handling and logging of ipv4/ipv6 addresses in STYSocket