it should use insecure flag instead of plaintext

This commit is contained in:
xumc 2019-09-13 21:34:39 +08:00
parent 4054d1d115
commit 0b78efceac
1 changed files with 1 additions and 1 deletions

View File

@ -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 {