Commit 31af9ea3 authored by Jérome Perrin's avatar Jérome Perrin

Don't set InsecureSkipVerify

Let's be safe by default for now
parent b2052811
...@@ -84,7 +84,7 @@ func FLBPluginFlushCtx(ctx, data unsafe.Pointer, length C.int, tag *C.char) int ...@@ -84,7 +84,7 @@ func FLBPluginFlushCtx(ctx, data unsafe.Pointer, length C.int, tag *C.char) int
uri := fmt.Sprintf("%s/ingest?reference=%s", dict["streamtool_uri"], dict["reference"]) uri := fmt.Sprintf("%s/ingest?reference=%s", dict["streamtool_uri"], dict["reference"])
client := &http.Client{ client := &http.Client{
Transport: &http.Transport{ Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, TLSClientConfig: &tls.Config{},
}, },
} }
req, err := http.NewRequest("POST", uri, bytes.NewReader(b)) req, err := http.NewRequest("POST", uri, bytes.NewReader(b))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment