mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-02 11:21:11 +08:00
跳过证书验证
This commit is contained in:
@@ -2,6 +2,7 @@ package sysmodule
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net"
|
"net"
|
||||||
@@ -61,6 +62,7 @@ func (slf *HttpClientPoolModule) Init(maxpool int, proxyUrl string) {
|
|||||||
MaxIdleConnsPerHost: maxpool,
|
MaxIdleConnsPerHost: maxpool,
|
||||||
IdleConnTimeout: 60 * time.Second,
|
IdleConnTimeout: 60 * time.Second,
|
||||||
Proxy: proxyfun,
|
Proxy: proxyfun,
|
||||||
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user