Skip to content

Commit

Permalink
cull: do not hardcode IPv4 localhost address for IPv6 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
stv0g committed Apr 14, 2020
1 parent 6d361f2 commit ae80fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jupyterhub/files/hub/cull_idle_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Or run it manually by generating an API token and storing it in `JUPYTERHUB_API_TOKEN`:
export JUPYTERHUB_API_TOKEN=`jupyterhub token`
python cull_idle_servers.py [--timeout=900] [--url=http://127.0.0.1:8081/hub/api]
python cull_idle_servers.py [--timeout=900] [--url=http://localhost:8081/hub/api]
"""

from datetime import datetime, timezone
Expand Down
2 changes: 1 addition & 1 deletion jupyterhub/files/hub/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def camelCaseify(s):
]
base_url = c.JupyterHub.get('base_url', '/')
cull_cmd.append(
'--url=http://127.0.0.1:8081' + url_path_join(base_url, 'hub/api')
'--url=http://localhost:8081' + url_path_join(base_url, 'hub/api')
)

cull_timeout = get_config('cull.timeout')
Expand Down

0 comments on commit ae80fb5

Please sign in to comment.