Skip to content

Commit 2161479

Browse files
committed
feat: allow self signed certs
1 parent 73dff44 commit 2161479

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)