aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-01 17:47:31 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-01 17:49:57 +0100
commit2a910c7af2b5b1f59397a1acf4b7cb1d574dbf42 (patch)
tree45b3c32b6c9c66c88c6345729cb9d32a42d83820 /src
parente7f6c15bc11ce04fdc3444f7bd1a588516e92dd9 (diff)
downloaddiplonat-2a910c7af2b5b1f59397a1acf4b7cb1d574dbf42.tar.gz
diplonat-2a910c7af2b5b1f59397a1acf4b7cb1d574dbf42.zip
Default value for skip tls parameter
Diffstat (limited to 'src')
-rw-r--r--src/config/options.rs3
1 files changed, 2 insertions, 1 deletions
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<String>,
/// Consul's CA certificate [default: None]
pub ca_cert: Option<String>,
- /// 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<String>,