diff options
Diffstat (limited to 'Lib/socket.py')
-rw-r--r-- | Lib/socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py index 3cc8d91187..e5180b5611 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) |