bot: Log ssl checking
All checks were successful
Build Docker / Build Docker (push) Successful in 17s

This commit is contained in:
Nathan Woodburn 2023-10-01 23:12:09 +11:00
parent ae7d3e4d05
commit 937606efaa
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

2
bot.py
View File

@ -322,8 +322,10 @@ async def checkForSSLExpiry():
for line in lines:
line = line.strip()
if not line:
print("No line", flush=True)
continue
userid, domain = line.split(",")
print(f"Checking SSL certificate for {domain}...", flush=True)
resolver = dns.resolver.Resolver()
resolver.nameservers = ["100.74.29.146"]
resolver.port = 53