Commit 4aee2923 authored by Jason Madden's avatar Jason Madden

More on ares; different results under linux.

parent 5af8c102
......@@ -222,8 +222,11 @@ def getfqdn(name=''):
else:
aliases.insert(0, hostname)
for name in aliases:
if isinstance(name, bytes):
if b'.' in name:
break
elif '.' in name:
break
else:
name = hostname
return name
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment