Skip to content

Commit

Permalink
Fix prompt message for web.run_app #832
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Mar 18, 2016
1 parent caa8d92 commit a1f39a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aiohttp/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,9 @@ def run_app(app, *, host='0.0.0.0', port=None,
ssl=ssl_context))

scheme = 'https' if ssl_context else 'http'
prompt = '127.0.0.1' if host == '0.0.0.0' else host
print("======== Running on {scheme}://{prompt}:{port}/ ========\n"
print("======== Running on {scheme}://{host}:{port}/ ========\n"
"(Press CTRL+C to quit)".format(
scheme=scheme, prompt=prompt, port=port))
scheme=scheme, host=host, port=port))

try:
loop.run_forever()
Expand Down

0 comments on commit a1f39a9

Please sign in to comment.