Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: show host url #2324

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion locust/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="top_box box_url">
<div class="label">HOST</div>
<div class="value" id="host_url">
<a id="host_url_link" href="" target="_blank"><span id="host_url_link_value"></span></a>
<a id="host_url_link" href="" target="_blank"><span id="host_url_link_value">{{host}}</span></a>
</div>
</div>
<div class="top_box box_status">
Expand Down
2 changes: 1 addition & 1 deletion locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def update_template_args(self):
"is_distributed": is_distributed,
"user_count": self.environment.runner.user_count,
"version": version,
"host": host,
"host": host if host else "",
"history": stats.history if stats.num_requests > 0 else {},
"override_host_warning": override_host_warning,
"num_users": options and options.num_users,
Expand Down