From 904c848bccb63042a7d1cc789816da71ef0ae34d Mon Sep 17 00:00:00 2001 From: Peter Ruppel Date: Tue, 24 Mar 2015 20:15:29 +0100 Subject: [PATCH] Make the hub bind to address specified in hub_ip Bug: the hub binds to all interfaces and ignores the address given in 'hub_ip'. The 'address' parameter was missing in the call http_server.listen(). --- jupyterhub/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub/app.py b/jupyterhub/app.py index 73a5f3b4..21875d24 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -994,7 +994,7 @@ class JupyterHub(Application): # start the webserver self.http_server = tornado.httpserver.HTTPServer(self.tornado_application, xheaders=True) try: - self.http_server.listen(self.hub_port) + self.http_server.listen(self.hub_port, address=self.hub_ip) except Exception: self.log.error("Failed to bind hub to %s" % self.hub.server.bind_url) raise