Skip to content

Commit

Permalink
Merge pull request #2498 from locustio/windows-fix-output-Starting-we…
Browse files Browse the repository at this point in the history
…b-interface-hostname

Adjust "Starting web interface at"-output
  • Loading branch information
cyberw authored Dec 3, 2023
2 parents d10e65f + e3c71a8 commit e990ce8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,12 @@ def kill_workers(children):
if web_host:
logger.info(f"Starting web interface at {protocol}://{web_host}:{options.web_port}")
else:
logger.info(
"Starting web interface at %s://0.0.0.0:%s (accepting connections from all network interfaces)"
% (protocol, options.web_port)
)
if os.name == "nt":
logger.info(
f"Starting web interface at {protocol}://localhost:{options.web_port} (accepting connections from all network interfaces)"
)
else:
logger.info(f"Starting web interface at {protocol}://0.0.0.0:{options.web_port}")
if options.web_auth:
logging.info("BasicAuth support is deprecated, it will be removed in a future release.")
web_ui = environment.create_web_ui(
Expand Down

0 comments on commit e990ce8

Please sign in to comment.