mirror of
https://git.keinpfusch.net/loweel/zangtumb
synced 2024-12-18 12:38:21 +01:00
Better TLS Configuration
This commit is contained in:
parent
1af4d062fd
commit
223b65994c
@ -38,7 +38,6 @@ func init() {
|
|||||||
if os.Getenv("USETLS") == "true" {
|
if os.Getenv("USETLS") == "true" {
|
||||||
log.Println("Preparing TLS Keys")
|
log.Println("Preparing TLS Keys")
|
||||||
ZMakecert()
|
ZMakecert()
|
||||||
ZangSmtpServer.ConfigureTLS(CrtFile, KeyFile)
|
|
||||||
ZangSmtpServer.TLSListener = false
|
ZangSmtpServer.TLSListener = false
|
||||||
ZangSmtpServer.TLSRequired = true
|
ZangSmtpServer.TLSRequired = true
|
||||||
log.Println("Using TLS: ", ZangSmtpServer.TLSRequired)
|
log.Println("Using TLS: ", ZangSmtpServer.TLSRequired)
|
||||||
@ -59,6 +58,8 @@ func init() {
|
|||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
log.Println("Starting the server....")
|
log.Println("Starting the server....")
|
||||||
|
|
||||||
|
ZangSmtpServer.ConfigureTLS(CrtFile, KeyFile)
|
||||||
|
|
||||||
defer log.Println("Shutting down the server")
|
defer log.Println("Shutting down the server")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user