add “or 127.0.0.1” for all-ips

Makes it not a copyable URL anymore, but there’s no way for a copyable host to work in general in this case.
pull/3703/head
Min RK 8 years ago
parent b8b66332e2
commit 357b8e7758

@ -1358,7 +1358,7 @@ class NotebookApp(JupyterApp):
url += '/'
else:
if self.ip in ('', '0.0.0.0'):
ip = socket.gethostname()
ip = "(%s or 127.0.0.1)" % socket.gethostname()
else:
ip = self.ip
url = self._url(ip)

Loading…
Cancel
Save