跳过证书验证

This commit is contained in:
boyce
2019-04-25 20:38:06 +08:00
parent 32729ca932
commit badec54ac1

View File

@@ -2,6 +2,7 @@ package sysmodule
import (
"bytes"
"crypto/tls"
"fmt"
"io/ioutil"
"net"
@@ -61,6 +62,7 @@ func (slf *HttpClientPoolModule) Init(maxpool int, proxyUrl string) {
MaxIdleConnsPerHost: maxpool,
IdleConnTimeout: 60 * time.Second,
Proxy: proxyfun,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
}
}