1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-06-09 19:10:54 +00:00

modified test of s per JoshData request

This commit is contained in:
David R. Andersen 2016-10-14 08:51:52 -05:00
parent 7b084732b9
commit 154b0ece57

View File

@ -355,7 +355,7 @@ def build_sshfp_records():
t = f.readlines()
for line in t:
s = line.split()
if s != [] and s[0] == 'Port':
if len(s) == 2 and s[0] == 'Port':
ports = ports + [s[1]]
# the keys are the same at each port, so we only need to get
# them at the first port found (may not be port 22)