fix listen on ipv6 socket code