mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
updated occurences of fqdn algorithm (closes patch #101197)
This commit is contained in:
parent
77c9f50422
commit
2d2785aad1
3 changed files with 8 additions and 36 deletions
|
@ -85,7 +85,7 @@ def getfqdn(name=''):
|
|||
is returned.
|
||||
"""
|
||||
name = name.strip()
|
||||
if len(name) == 0:
|
||||
if not name or name == '0.0.0.0':
|
||||
name = gethostname()
|
||||
try:
|
||||
hostname, aliases, ipaddrs = gethostbyaddr(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue