Skip to content

Commit

Permalink
Readded validate_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
gclen committed Mar 4, 2017
1 parent 47227c5 commit 5694a94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions notebook/notebookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,13 @@ def _default_ip(self):
s.close()
return 'localhost'

@validate('ip')
def _valdate_ip(self, proposal):
value = proposal['value']
if value == u'*':
value = u''
return value

port = Integer(8888, config=True,
help="The port the notebook server will listen on."
)
Expand Down

0 comments on commit 5694a94

Please sign in to comment.