mirror of
https://git.keinpfusch.net/loweel/zangtumb
synced 2025-06-05 17:20:25 +02:00
creating certs in the proper time
This commit is contained in:
@@ -36,7 +36,8 @@ func init() {
|
||||
}
|
||||
|
||||
if os.Getenv("USETLS") == "true" {
|
||||
|
||||
log.Println("Preparing TLS Keys")
|
||||
ZMakecert()
|
||||
ZangSmtpServer.ConfigureTLS(CrtFile, KeyFile)
|
||||
ZangSmtpServer.TLSListener = false
|
||||
ZangSmtpServer.TLSRequired = true
|
||||
@@ -49,7 +50,7 @@ func init() {
|
||||
log.Println("WARNING: NOT Using TLS")
|
||||
}
|
||||
|
||||
ZMakecert()
|
||||
|
||||
|
||||
log.Println("Ready to start the server.")
|
||||
|
||||
|
Reference in New Issue
Block a user