added skip vetify of server cert
This commit is contained in:
@@ -17,10 +17,10 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func makeHTTPClient() *http.Client {
|
||||
func makeHTTPClient(skipTLSVerify bool) *http.Client {
|
||||
transport := &http.Transport{
|
||||
TLSClientConfig: &tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
InsecureSkipVerify: skipTLSVerify,
|
||||
},
|
||||
}
|
||||
client := &http.Client{
|
||||
|
||||
Reference in New Issue
Block a user