Skip to content

Commit cbb040f

Browse files
Merge pull request #21 from appbaseio/feat/allow-self-signed-certs
feat: allow self signed certs v7
2 parents 6924bf5 + 7c2eb0c commit cbb040f

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)