quick fix

This commit is contained in:
Stephen Cochrane 2021-02-11 16:22:08 +02:00
parent 3a85b7f864
commit 2521a4bcf6
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ def domstatus(dom):
ip = os.popen('ping -c 1 -w 5 %s.%s | head -1 | cut -d \" \" -f 3' % (sub, main_domain)).read()
results.append("%s.%s:%s" % (sub, main_domain, ip))
elif dom not in domains:
results = "unknown domain"
results = ["unknown domain"]
else:
ip = os.popen('ping -c 1 -w 5 %s.%s | head -1 | cut -d \" \" -f 3' % (dom, main_domain)).read()
results.append("%s.%s:%s" % (dom, main_domain, ip))