mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-11 21:54:50 +08:00
跳过证书验证
This commit is contained in:
@@ -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},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user