We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3dedcca + bb438ea commit 2e2b5d4Copy full SHA for 2e2b5d4
splunk/splunk.go
@@ -44,7 +44,7 @@ type Client struct {
44
func NewClient(httpClient *http.Client, URL string, Token string, Source string, SourceType string, Index string) *Client {
45
// Create a new client
46
if httpClient == nil {
47
- tr := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}} // turn off certificate checking
+ tr := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: false}}
48
httpClient = &http.Client{Timeout: time.Second * 20, Transport: tr}
49
}
50
hostname, _ := os.Hostname()
0 commit comments