mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 21:43:01 +00:00
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().
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user