Skip to content

Commit

Permalink
Add sgignore
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-royl authored Jun 15, 2022
1 parent 9f4dea2 commit 057b48e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions APIFiles/HTTPConnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +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) {
//sgignore next_line
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
var netClient = &http.Client{
Timeout: timeout,
Expand All @@ -36,6 +37,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),
//sgignore next_line
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
var netClient = &http.Client{
Expand Down

0 comments on commit 057b48e

Please sign in to comment.