bot: Log ssl checking
All checks were successful
Build Docker / Build Docker (push) Successful in 17s
All checks were successful
Build Docker / Build Docker (push) Successful in 17s
This commit is contained in:
parent
ae7d3e4d05
commit
937606efaa
2
bot.py
2
bot.py
@ -322,8 +322,10 @@ async def checkForSSLExpiry():
|
|||||||
for line in lines:
|
for line in lines:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if not line:
|
if not line:
|
||||||
|
print("No line", flush=True)
|
||||||
continue
|
continue
|
||||||
userid, domain = line.split(",")
|
userid, domain = line.split(",")
|
||||||
|
print(f"Checking SSL certificate for {domain}...", flush=True)
|
||||||
resolver = dns.resolver.Resolver()
|
resolver = dns.resolver.Resolver()
|
||||||
resolver.nameservers = ["100.74.29.146"]
|
resolver.nameservers = ["100.74.29.146"]
|
||||||
resolver.port = 53
|
resolver.port = 53
|
||||||
|
Loading…
Reference in New Issue
Block a user