Skip to content

Commit

Permalink
[Bugfix] Enable Insecure Exporter connection (#1686)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanikow authored Jul 20, 2024
1 parent 642cc7f commit 520f319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exporter/passthru.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type httpClientFactory func(endpoint string) (*http.Client, *http.Request, error

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

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

0 comments on commit 520f319

Please sign in to comment.