Skip to content

Commit 9f4dea2

Browse files
authored
Skip TLS verify
1 parent 041cdbf commit 9f4dea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

APIFiles/HTTPConnection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type Client struct {
2323

2424
// Init and returns new instance of HTTP client wrapper
2525
func CreateClient(server string, sid string, timeout time.Duration) (*Client, error) {
26-
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: false}
26+
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
2727
var netClient = &http.Client{
2828
Timeout: timeout,
2929
}
@@ -36,7 +36,7 @@ func CreateProxyClient(server string, serverProxy string, sid string, portProxy
3636
http.DefaultTransport = &http.Transport{
3737
Proxy: http.ProxyURL(proxyURL),
3838
TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper),
39-
TLSClientConfig: &tls.Config{InsecureSkipVerify: false},
39+
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
4040
}
4141
var netClient = &http.Client{
4242
Timeout: timeout,

0 commit comments

Comments
 (0)