Skip to content

Commit

Permalink
Note to users when --web-host is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrytokarev authored Jul 29, 2020
1 parent a4fb1c0 commit d3d5e53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ def timelimit_stop():
web_host = ''
else:
web_host = options.web_host
logger.info("Starting web interface at %s://%s:%s" % (protocol, web_host if web_host else '127.0.0.1', options.web_port))
if web_host:
logger.info("Starting web interface at %s://%s:%s" % (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))
web_ui = environment.create_web_ui(
host=web_host,
port=options.web_port,
Expand Down

0 comments on commit d3d5e53

Please sign in to comment.