diff --git a/backend/check_domains.py b/backend/check_domains.py index fa1f3b46b467ce83450f65d9ae18fc4e25351125..66063b9e87e6b2b2ca5be45759b6705d74ef884b 100644 --- a/backend/check_domains.py +++ b/backend/check_domains.py @@ -18,14 +18,22 @@ if __name__ == "__main__": console.log("[white]Checking web domains...") v = Verificator(context) - for web_domain in input["domains"]["web"]: - result = v.connect(web_domain, 443, "ssl") + for https_entry in input["domains"]["https"]: + # HTTPS (TLS) w/ 443 + result = v.connect(https_entry, 443, "ssl") + result.print(console) + + for tls_entry in input["domains"]["tls"]: + # TLS w/ custom port + result = v.connect(tls_entry["host"], tls_entry["port"], "ssl") result.print(console) for smtp_entry in input["domains"]["smtp"]: + # SMTP w/ STARTTLS result = v.connect(smtp_entry["host"], smtp_entry["port"], "smtp") result.print(console) for imap_entry in input["domains"]["imap"]: + # IMAP w/ STARTTLS result = v.connect(imap_entry["host"], imap_entry["port"], "imap") result.print(console)