File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ New features:
30
30
31
31
- The files list now shows file sizes (:ghpull: `3539 `)
32
32
- Add a quit button in the dashboard (:ghpull: `3004 `)
33
- - Display hostname in the terminal when running remotely (:ghpull: `3356 `)
33
+ - Display hostname in the terminal when running remotely (:ghpull: `3356 `, :ghpull: ` 3593 ` )
34
34
- Add slides exportation/download to the menu (:ghpull: `3287 `)
35
35
- Add any extra installed nbconvert exporters to the "Download as" menu (:ghpull: `3323 `)
36
36
- Editor: warning when overwriting a file that is modified on disk (:ghpull: `2783 `)
Original file line number Diff line number Diff line change @@ -1339,11 +1339,10 @@ def init_webapp(self):
1339
1339
1340
1340
@property
1341
1341
def display_url (self ):
1342
- hostname = socket .gethostname ()
1343
- if self .ip in ('localhost' , '127.0.0.1' , hostname ):
1344
- ip = self .ip
1342
+ if self .ip in ('' , '0.0.0.0' ):
1343
+ ip = socket .gethostname ()
1345
1344
else :
1346
- ip = hostname
1345
+ ip = self . ip
1347
1346
url = self ._url (ip )
1348
1347
if self .token :
1349
1348
# Don't log full token if it came from config
You can’t perform that action at this time.
0 commit comments