Fix HTTPS functionality, broken some time ago with the introduction of HTTP only mode!
This commit is contained in:
parent
8540dbc2eb
commit
0e2b7843c7
2
main.go
2
main.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue