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

More on ares; different results under linux.

parent 5af8c102
...@@ -222,7 +222,10 @@ def getfqdn(name=''): ...@@ -222,7 +222,10 @@ def getfqdn(name=''):
else: else:
aliases.insert(0, hostname) aliases.insert(0, hostname)
for name in aliases: for name in aliases:
if b'.' in name: if isinstance(name, bytes):
if b'.' in name:
break
elif '.' in name:
break break
else: else:
name = hostname name = hostname
......
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