From 0b78efceace7e5bdceab28408d4bd049e0359ed4 Mon Sep 17 00:00:00 2001 From: xumc Date: Fri, 13 Sep 2019 21:34:39 +0800 Subject: [PATCH] it should use insecure flag instead of plaintext --- cmd/grpcurl/grpcurl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/grpcurl/grpcurl.go b/cmd/grpcurl/grpcurl.go index 013e2e1..887804d 100644 --- a/cmd/grpcurl/grpcurl.go +++ b/cmd/grpcurl/grpcurl.go @@ -290,7 +290,7 @@ func main() { opts = append(opts, grpc.WithAuthority(*authority)) } var creds credentials.TransportCredentials - if !*plaintext { + if !*insecure { var err error creds, err = grpcurl.ClientTransportCredentials(*insecure, *cacert, *cert, *key) if err != nil {