Skip to content
Snippets Groups Projects
Commit 192083a3 authored by Augie Fackler's avatar Augie Fackler
Browse files

zeroconf: gethostbyaddr may also fail with socket.herror

parent be324d31
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@
dumbip = socket.gethostbyaddr(socket.gethostname())[2][0]
if not dumbip.startswith('127.') and ':' not in dumbip:
return dumbip
except socket.gaierror:
except (socket.gaierror, socket.herror):
dumbip = '127.0.0.1'
# works elsewhere, but actually sends a packet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment