fix: remove duplication of output

This commit is contained in:
Alex Kelly 2021-09-30 12:45:12 -04:00
parent 8ddf5f1b49
commit 889258bdaa

View file

@ -113,8 +113,8 @@ def main(san, dump, expires, hosts):
HOSTS.append((host_info[0], int(host_info[1]))) HOSTS.append((host_info[0], int(host_info[1])))
else: else:
HOSTS.append((host, 443)) HOSTS.append((host, 443))
output_string = ""
for hostinfo in map(lambda x: get_certificate(x[0], x[1]), HOSTS): for hostinfo in map(lambda x: get_certificate(x[0], x[1]), HOSTS):
output_string = ""
if dump: if dump:
print(get_x509_text(hostinfo.cert).decode()) print(get_x509_text(hostinfo.cert).decode())
else: else: