Skip to content

Commit

Permalink
update insecure condition
Browse files Browse the repository at this point in the history
  • Loading branch information
makeavish committed Aug 25, 2023
1 parent 1248752 commit 86a9e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func initTracer() func(context.Context) error {

var secureOption otlptracegrpc.Option

if strings.ToLower(insecure) == "true" || insecure == "1" || strings.ToLower(insecure) == "t" {
if strings.ToLower(insecure) == "false" || insecure == "0" || strings.ToLower(insecure) == "f" {
secureOption = otlptracegrpc.WithTLSCredentials(credentials.NewClientTLSFromCert(nil, ""))
} else {
secureOption = otlptracegrpc.WithInsecure()
Expand Down

0 comments on commit 86a9e96

Please sign in to comment.