mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
use 127.0.0.1 instead of localhost
localhost can cause some issues on badly behaved or misconfigured systems, and 127 seems simpler.
This commit is contained in:
@@ -22,7 +22,7 @@ from traitlets import (
|
||||
)
|
||||
|
||||
from .traitlets import Command
|
||||
from .utils import random_port, localhost
|
||||
from .utils import random_port
|
||||
|
||||
class Spawner(LoggingConfigurable):
|
||||
"""Base class for spawning single-user notebook servers.
|
||||
@@ -41,7 +41,7 @@ class Spawner(LoggingConfigurable):
|
||||
hub = Any()
|
||||
authenticator = Any()
|
||||
api_token = Unicode()
|
||||
ip = Unicode(localhost(), config=True,
|
||||
ip = Unicode('127.0.0.1', config=True,
|
||||
help="The IP address (or hostname) the single-user server should listen on"
|
||||
)
|
||||
start_timeout = Integer(60, config=True,
|
||||
|
Reference in New Issue
Block a user