Skip to content

Commit 520f319

Browse files
authored
[Bugfix] Enable Insecure Exporter connection (#1686)
1 parent 642cc7f commit 520f319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/exporter/passthru.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type httpClientFactory func(endpoint string) (*http.Client, *http.Request, error
4545

4646
func newHttpClientFactory(auth Authentication, sslVerify bool, timeout time.Duration) httpClientFactory {
4747
return func(endpoint string) (*http.Client, *http.Request, error) {
48-
transport := operatorHTTP.Transport(operatorHTTP.WithTransportTLS(util.BoolSwitch(sslVerify, operatorHTTP.Insecure, nil)))
48+
transport := operatorHTTP.Transport(operatorHTTP.WithTransportTLS(util.BoolSwitch(sslVerify, nil, operatorHTTP.Insecure)))
4949

5050
req, err := http.NewRequest("GET", endpoint, nil)
5151
if err != nil {

0 commit comments

Comments
 (0)