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

Appearance settings

Commit da6e5db

Browse filesBrowse files
committed
修复get_localhost_ip
1 parent 82e7eba commit da6e5db
Copy full SHA for da6e5db

1 file changed

+2Lines changed: 2 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎feapder/utils/tools.py‎

Copy file name to clipboardExpand all lines: feapder/utils/tools.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,8 @@ def get_localhost_ip():
630630
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
631631
s.connect(("8.8.8.8", 80))
632632
ip = s.getsockname()[0]
633+
except:
634+
ip = ""
633635
finally:
634636
if s:
635637
s.close()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.