Fix HTTPS functionality, broken some time ago with the introduction of HTTP only mode!

This commit is contained in:
Solderpunk 2024-04-19 17:07:29 +02:00
parent 8540dbc2eb
commit 0e2b7843c7
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ func main_body() int {
// Start HTTPS server
if(https) {
go func() {
errs <- https_server.ListenAndServe()
errs <- https_server.ListenAndServeTLS(config.CertPath, config.KeyPath)
}()
log.Println("Listening on ports " + strconv.Itoa(config.HttpPort) + " and " + strconv.Itoa(config.HttpsPort) + "...")
} else {