diff --git a/locust/templates/index.html b/locust/templates/index.html index 2da3c24db9..c87e017654 100644 --- a/locust/templates/index.html +++ b/locust/templates/index.html @@ -15,7 +15,7 @@
HOST
- + {{host}}
diff --git a/locust/web.py b/locust/web.py index 8995b4052c..590fbe8b8f 100644 --- a/locust/web.py +++ b/locust/web.py @@ -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,