fix peername stuff for ipv4 & ipv6