summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorPeter Schneider-Kamp <nowonder@nowonder.de>2000-08-16 20:30:21 (GMT)
committerPeter Schneider-Kamp <nowonder@nowonder.de>2000-08-16 20:30:21 (GMT)
commit2d2785aad1ad7e7ea565a58187b2d1a0efa0ea54 (patch)
tree780c831d42641790e801131d8d0ac706836487c6 /Lib/socket.py
parent77c9f50422833829fe1c001831f778e4fcd512df (diff)
downloadcpython-2d2785aad1ad7e7ea565a58187b2d1a0efa0ea54.zip
cpython-2d2785aad1ad7e7ea565a58187b2d1a0efa0ea54.tar.gz
cpython-2d2785aad1ad7e7ea565a58187b2d1a0efa0ea54.tar.bz2
updated occurences of fqdn algorithm (closes patch #101197)
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index 3cc8d91..e5180b5 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -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)