SoC: Fix server startup
This commit is contained in:
parent
39667d94b8
commit
f15daeeaf4
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue