Skip to content

Commit

Permalink
Merge pull request #3766 from takluyver/disable-host-check
Browse files Browse the repository at this point in the history
Disable the host check for 5.6 because of gh-3754
  • Loading branch information
takluyver authored Jul 14, 2018
2 parents ebc60bc + a050362 commit 86e6f79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ New features:
checking the ``Host`` header from the browser (:ghpull:`3714`).
This check can be disabled if necessary by setting
``NotebookApp.allow_remote_access``.
(Disabled by default while we work out some Mac issues in :ghissue:`3754`).
- Add kernel_info_timeout traitlet to enable restarting slow kernels (:ghpull:`3665`)
- Add ``custom_display_host`` config option to override displayed URL (:ghpull:`3668`)
- Add /metrics endpoint for Prometheus Metrics (:ghpull:`3490`)
Expand Down
4 changes: 4 additions & 0 deletions notebook/notebookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,10 @@ def _token_changed(self, change):
@default('allow_remote_access')
def _default_allow_remote(self):
"""Disallow remote access if we're listening only on loopback addresses"""
# Disable the check temporarily because of Mac issues:
# https://github.com/jupyter/notebook/issues/3754
return True

try:
addr = ipaddress.ip_address(self.ip)
except ValueError:
Expand Down

0 comments on commit 86e6f79

Please sign in to comment.