aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-12-15 20:59:34 -0500
committerJesús <heckyel@hyperbola.info>2020-12-15 20:59:34 -0500
commitcf8e8ea5b10c00639d68b8a04a292bda454cc18d (patch)
tree54cd4275c688dd821df40cb9640ae16edac9fc47
parentd66c8661cb85985f38b776000a2c7200d2550edf (diff)
downloadyt-local-cf8e8ea5b10c00639d68b8a04a292bda454cc18d.tar.lz
yt-local-cf8e8ea5b10c00639d68b8a04a292bda454cc18d.tar.xz
yt-local-cf8e8ea5b10c00639d68b8a04a292bda454cc18d.zip
Improve message Starting httpserver
-rw-r--r--server.py6
1 files changed, 5 insertions, 1 deletions
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.