浏览代码

Call SSL TLS

tags/v0.1.0
Russ Garrett 7 年前
父节点
当前提交
450cdce744
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 2
    2
      httplistener/httplistener.go
  2. 3
    3
      irccat.json

+ 2
- 2
httplistener/httplistener.go 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存