Show More
@@ -470,11 +470,14 b' class NotebookApp(BaseIPythonApplication):' | |||||
470 | ssl_options = None |
|
470 | ssl_options = None | |
471 | self.web_app.password = self.password |
|
471 | self.web_app.password = self.password | |
472 | self.http_server = httpserver.HTTPServer(self.web_app, ssl_options=ssl_options) |
|
472 | self.http_server = httpserver.HTTPServer(self.web_app, ssl_options=ssl_options) | |
473 | if ssl_options is None and not self.ip and not (self.read_only and not self.password): |
|
473 | if not self.ip: | |
474 |
|
|
474 | warning = "WARNING: The notebook server is listening on all IP addresses" | |
475 | 'but not using any encryption or authentication. This is highly ' |
|
475 | if ssl_options is None: | |
476 | 'insecure and not recommended.') |
|
476 | self.log.critical(warning + " and not using encryption. This" | |
477 |
|
477 | "is not recommended.") | ||
|
478 | if not self.password and not self.read_only: | |||
|
479 | self.log.critical(warning + "and not using authentication." | |||
|
480 | "This is highly insecure and not recommended.") | |||
478 | success = None |
|
481 | success = None | |
479 | for port in random_ports(self.port, self.port_retries+1): |
|
482 | for port in random_ports(self.port, self.port_retries+1): | |
480 | try: |
|
483 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now