From 2a910c7af2b5b1f59397a1acf4b7cb1d574dbf42 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 1 Dec 2022 17:47:31 +0100 Subject: [PATCH] Default value for skip tls parameter --- src/config/options.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/options.rs b/src/config/options.rs index 28b3379..793838a 100644 --- a/src/config/options.rs +++ b/src/config/options.rs @@ -39,7 +39,8 @@ pub struct ConfigOptsConsul { pub url: Option, /// Consul's CA certificate [default: None] pub ca_cert: Option, - /// Skip TLS verification for Consul server + /// Skip TLS verification for Consul server [default: false] + #[serde(default)] pub tls_skip_verify: bool, /// Consul's client certificate [default: None] pub client_cert: Option,