Skip to content

Commit 2e2b5d4

Browse files
Merge pull request #5 from development
Remove insecure transport on default client
2 parents 3dedcca + bb438ea commit 2e2b5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunk/splunk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type Client struct {
4444
func NewClient(httpClient *http.Client, URL string, Token string, Source string, SourceType string, Index string) *Client {
4545
// Create a new client
4646
if httpClient == nil {
47-
tr := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}} // turn off certificate checking
47+
tr := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: false}}
4848
httpClient = &http.Client{Timeout: time.Second * 20, Transport: tr}
4949
}
5050
hostname, _ := os.Hostname()

0 commit comments

Comments
 (0)