Browse Source

Call SSL TLS

tags/v0.1.0
Russ Garrett 7 years ago
parent
commit
450cdce744
No account linked to committer's email address
2 changed files with 5 additions and 5 deletions
  1. 2
    2
      httplistener/httplistener.go
  2. 3
    3
      irccat.json

+ 2
- 2
httplistener/httplistener.go View File

@@ -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
 	}

+ 3
- 3
irccat.json View File

@@ -2,9 +2,9 @@
2 2
   "tcp_listen": ":12345",
3 3
   "http": {
4 4
     "listen": ":8045",
5
-    "ssl": false,
6
-    "ssl_key": "",
7
-    "ssl_cert": "",
5
+    "tls": false,
6
+    "tls_key": "",
7
+    "tls_cert": "",
8 8
     "listeners": {
9 9
       "grafana": "#russtest"
10 10
     }

Loading…
Cancel
Save