SoC: Fix server startup

This commit is contained in:
andig 2021-04-19 23:47:34 +02:00
parent 39667d94b8
commit f15daeeaf4

View file

@ -225,7 +225,9 @@ func Run() {
Cache: autocert.DirCache(sslCertDir),
}
go log.Fatal(http.ListenAndServe(":http", certManager.HTTPHandler(nil)))
go func() {
log.Fatal(http.ListenAndServe(":http", certManager.HTTPHandler(nil)))
}()
s.Addr = ":https"
s.TLSConfig = certManager.TLSConfig()