TLS updates

This commit is contained in:
Bolke de Bruin
2022-08-04 21:49:59 +02:00
parent a548d2b30a
commit 008ae03557
2 changed files with 6 additions and 2 deletions

View File

@@ -143,7 +143,11 @@ func main() {
http.HandleFunc("/tokeninfo", api.TokenInfo)
http.HandleFunc("/callback", api.HandleCallback)
err = server.ListenAndServeTLS("", "")
if conf.Server.DisableTLS {
err = server.ListenAndServe()
} else {
err = server.ListenAndServeTLS("", "")
}
if err != nil {
log.Fatal("ListenAndServe: ", err)
}