fix: display secure url with proper protocol

Satrajit Ghosh 15 years ago
parent 5eaf0061e3
commit 1ae18b5be7

@ -263,7 +263,12 @@ class IPythonNotebookApp(BaseIPythonApplication):
def start(self):
ip = self.ip if self.ip else '[all ip addresses on your system]'
self.log.info("The IPython Notebook is running at: http://%s:%i" % (ip, self.port))
proto = 'http'
if self.certfile:
proto = 'https'
self.log.info("The IPython Notebook is running at: %s://%s:%i" % (proto,
ip,
self.port))
ioloop.IOLoop.instance().start()
#-----------------------------------------------------------------------------

Loading…
Cancel
Save