From e9f0c22fc4f82bfcff40ee03fef95390cd4013fd Mon Sep 17 00:00:00 2001 From: Vasily Maryutenkov Date: Thu, 28 Dec 2023 11:50:43 +0300 Subject: [PATCH] fix rootca flag --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8539d2e..e6123b0 100644 --- a/main.go +++ b/main.go @@ -75,7 +75,7 @@ func init() { kingpin.Flag("address", "A list of Clickhouse hosts"). Default(defaultChHost).StringsVar(&hostnames) kingpin.Flag("root-ca", "Path to root CA"). - Default(defaultChRootCA).Envar("CH_ROOT_CA").StringsVar(&hostnames) + Default(defaultChRootCA).Envar("CH_ROOT_CA").StringVar(&rootCA) kingpin.Flag("connect-timeout", ""). Default(defaultTimeoutConnect). Envar("CH_CONNECT_TIMEOUT").DurationVar(&connectTimeout)