From cf8e8ea5b10c00639d68b8a04a292bda454cc18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 15 Dec 2020 20:59:34 -0500 Subject: Improve message Starting httpserver --- server.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server.py') diff --git a/server.py b/server.py index e456e3c..04d2d58 100644 --- a/server.py +++ b/server.py @@ -169,10 +169,14 @@ if __name__ == '__main__': if settings.allow_foreign_addresses: server = WSGIServer(('0.0.0.0', settings.port_number), site_dispatch, log=FilteredRequestLog()) + ip_server = '0.0.0.0' else: server = WSGIServer(('127.0.0.1', settings.port_number), site_dispatch, log=FilteredRequestLog()) - print('Started httpserver on port' , settings.port_number) + ip_server = '127.0.0.1' + + print('Starting httpserver at http://%s:%s/' % + (ip_server, settings.port_number)) server.serve_forever() # for uwsgi, gunicorn, etc. -- cgit v1.2.3