Skip to content

Commit a2508e0

Browse files
Merge pull request #22 from appbaseio/feat/allow-self-signed-certs-v6
feat: allow self signed certs v6
2 parents 73dff44 + 2161479 commit a2508e0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

util/util.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package util
22

33
import (
4+
"crypto/tls"
45
"encoding/json"
56
"fmt"
67
"math"
@@ -176,6 +177,7 @@ func HTTPClient() *http.Client {
176177
Timeout: 10 * time.Second,
177178
}).DialContext,
178179
TLSHandshakeTimeout: 10 * time.Second,
180+
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
179181
}
180182
var netClient = &http.Client{
181183
Timeout: time.Minute * 2,

0 commit comments

Comments
 (0)