From a681738518ddaa8875c074fa83f8cf5e18c9bc49 Mon Sep 17 00:00:00 2001 From: ti-srebot <66930949+ti-srebot@users.noreply.github.com> Date: Wed, 28 Apr 2021 10:33:18 +0800 Subject: [PATCH] cmd: fix wrong usage in cdc server cli flag, --cert-allowed-cn (#1697) #1698 --- cmd/util.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/util.go b/cmd/util.go index b8ecf90f758..e78d66c5c52 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -63,8 +63,7 @@ func addSecurityFlags(flags *pflag.FlagSet, isServer bool) { flags.StringVar(&certPath, "cert", "", "Certificate path for TLS connection") flags.StringVar(&keyPath, "key", "", "Private key path for TLS connection") if isServer { - flags.StringVar(&allowedCertCN, "cert-allowed-cn", "", "Verify caller's identity "+ - "(cert Common Name). Use `,` to separate multiple CN") + flags.StringVar(&allowedCertCN, "cert-allowed-cn", "", "Verify caller's identity (cert Common Name). Use ',' to separate multiple CN") } }