|
@@ -29,8 +29,8 @@ func New(irc *irc.Connection) (*HTTPListener, error) {
|
29
|
29
|
|
30
|
30
|
hl.http.Handler = mux
|
31
|
31
|
log.Infof("Listening for HTTP requests on %s", viper.GetString("http.listen"))
|
32
|
|
- if viper.GetBool("http.ssl") {
|
33
|
|
- go hl.http.ListenAndServeTLS(viper.GetString("http.ssl_cert"), viper.GetString("http.ssl_key"))
|
|
32
|
+ if viper.GetBool("http.tls") {
|
|
33
|
+ go hl.http.ListenAndServeTLS(viper.GetString("http.tls_cert"), viper.GetString("http.tls_key"))
|
34
|
34
|
} else {
|
35
|
35
|
go hl.http.ListenAndServe()
|
36
|
36
|
}
|