Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions APIFiles/HTTPConnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Client struct {

// Init and returns new instance of HTTP client wrapper
func CreateClient(server string, sid string, timeout time.Duration) (*Client, error) {
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: false}
var netClient = &http.Client{
Timeout: timeout,
}
Expand All @@ -36,7 +36,7 @@ func CreateProxyClient(server string, serverProxy string, sid string, portProxy
http.DefaultTransport = &http.Transport{
Proxy: http.ProxyURL(proxyURL),
TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper),
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
TLSClientConfig: &tls.Config{InsecureSkipVerify: false},
}
var netClient = &http.Client{
Timeout: timeout,
Expand Down