Skip to content

Commit 88a7c44

Browse files
committed
remove tls.Config default attribute setting
1 parent dd29234 commit 88a7c44

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

exporters/otlp/otlplog/otlploggrpc/example_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ func Example_selfSignedCertificates() {
5050
clientKey := os.Getenv("CUSTOM_CLIENT_KEY")
5151
if caFile != "" && clientCert != "" && clientKey != "" {
5252
// mTLS connection
53-
tlsCfg := tls.Config{
54-
InsecureSkipVerify: false,
55-
}
53+
tlsCfg := tls.Config{}
5654
// loads CA certificate
5755
pool := x509.NewCertPool()
5856
data, err := os.ReadFile(caFile)

0 commit comments

Comments
 (0)