mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
Merge pull request #353 from minrk/try-localhost
Ensure that we can bind and connect to localhost
This commit is contained in:
@@ -50,7 +50,7 @@ from ._data import DATA_FILES_PATH
|
||||
from .log import CoroutineLogFormatter, log_request
|
||||
from .traitlets import URLPrefix, Command
|
||||
from .utils import (
|
||||
url_path_join,
|
||||
url_path_join, localhost,
|
||||
ISO8601_ms, ISO8601_s,
|
||||
)
|
||||
# classes for config
|
||||
@@ -260,7 +260,7 @@ class JupyterHub(Application):
|
||||
token = orm.new_token()
|
||||
return token
|
||||
|
||||
proxy_api_ip = Unicode('localhost', config=True,
|
||||
proxy_api_ip = Unicode(localhost(), config=True,
|
||||
help="The ip for the proxy API handlers"
|
||||
)
|
||||
proxy_api_port = Integer(config=True,
|
||||
@@ -272,7 +272,7 @@ class JupyterHub(Application):
|
||||
hub_port = Integer(8081, config=True,
|
||||
help="The port for this process"
|
||||
)
|
||||
hub_ip = Unicode('localhost', config=True,
|
||||
hub_ip = Unicode(localhost(), config=True,
|
||||
help="The ip for this process"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user