Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prefer IP address over hostname when available#3593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
takluyver merged 2 commits intojupyter:masterfromtakluyver:url-prefer-ipaddr
May 5, 2018
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
Prefer IP address over hostname when available
  • Loading branch information
@takluyver
takluyver committedMay 4, 2018
commit38a67bc790eb8e82b919c77d8cdbe5fea25c1838
7 changes: 3 additions & 4 deletionsnotebook/notebookapp.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1339,11 +1339,10 @@ def init_webapp(self):

@property
def display_url(self):
hostname = socket.gethostname()
if self.ip in ('localhost', '127.0.0.1', hostname):
ip = self.ip
if self.ip in ('', '0.0.0.0'):
ip = socket.gethostname()
else:
ip =hostname
ip =self.ip
url = self._url(ip)
if self.token:
# Don't log full token if it came from config
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp