Skip to content

Commit

Permalink
Merge pull request #2324 from zifter/bugfix/fix-hostname-in-web-ui
Browse files Browse the repository at this point in the history
Fix: show host url
  • Loading branch information
cyberw authored Mar 20, 2023
2 parents dc0e4c0 + c71f9ce commit ebc8bb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -547,7 +547,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

0 comments on commit ebc8bb6

Please sign in to comment.