Skip to content

Commit

Permalink
Merge pull request #3703 from minrk/public-host
Browse files Browse the repository at this point in the history
add `or 127.0.0.1` when listening on all-ips
  • Loading branch information
takluyver authored Jun 30, 2018
2 parents b8b6633 + 357b8e7 commit 1b69205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/notebookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ def display_url(self):
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)
Expand Down

0 comments on commit 1b69205

Please sign in to comment.