Adding some extra logging

This commit is contained in:
Jonathan Ervine 2020-10-28 21:02:45 +08:00
parent 942d51582a
commit a4ddcd31ec

View File

@ -64,6 +64,7 @@ class MyServer(Server):
# again, overkill for running locally, but mandatory for remote
class MyController(Controller):
def factory(self):
print("[+} Starting TLS SMTP service")
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
context.load_cert_chain('cert.pem', 'key.pem')
return MyServer(self.handler, tls_context=context, require_starttls=True)