We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cfba9c commit 38a67bcCopy full SHA for 38a67bc
notebook/notebookapp.py
@@ -1339,11 +1339,10 @@ def init_webapp(self):
1339
1340
@property
1341
def display_url(self):
1342
- hostname = socket.gethostname()
1343
- if self.ip in ('localhost', '127.0.0.1', hostname):
1344
- ip = self.ip
+ if self.ip in ('', '0.0.0.0'):
+ ip = socket.gethostname()
1345
else:
1346
- ip = hostname
+ ip = self.ip
1347
url = self._url(ip)
1348
if self.token:
1349
# Don't log full token if it came from config
0 commit comments