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:
parent
7b084732b9
commit
154b0ece57
@ -355,7 +355,7 @@ def build_sshfp_records():
|
|||||||
t = f.readlines()
|
t = f.readlines()
|
||||||
for line in t:
|
for line in t:
|
||||||
s = line.split()
|
s = line.split()
|
||||||
if s != [] and s[0] == 'Port':
|
if len(s) == 2 and s[0] == 'Port':
|
||||||
ports = ports + [s[1]]
|
ports = ports + [s[1]]
|
||||||
# the keys are the same at each port, so we only need to get
|
# 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)
|
# them at the first port found (may not be port 22)
|
||||||
|
Loading…
Reference in New Issue
Block a user