aboutsummaryrefslogtreecommitdiff
path: root/src/config/options.rs
diff options
context:
space:
mode:
authoradrien <adrien@luxeylab.net>2021-12-28 11:56:12 +0100
committeradrien <adrien@luxeylab.net>2021-12-28 11:56:12 +0100
commit4560622fa125afb8ac5161f8d0e8a353f99f7a38 (patch)
tree0e6b8c716955ea5bb5896c5dc4c8294b69e54137 /src/config/options.rs
parent4d4d453afa3edafe71db2ae60171b8696b38a3c9 (diff)
parent7760b9c58fd98dd934a8f553dd7462049f545cf4 (diff)
downloaddiplonat-4560622fa125afb8ac5161f8d0e8a353f99f7a38.tar.gz
diplonat-4560622fa125afb8ac5161f8d0e8a353f99f7a38.zip
Merge pull request 'Allow Diplonat to automatically detect it's private IP' (#12) from autodetect-private-ip into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/diplonat/pulls/12
Diffstat (limited to 'src/config/options.rs')
-rw-r--r--src/config/options.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config/options.rs b/src/config/options.rs
index b8dccf7..f62d14c 100644
--- a/src/config/options.rs
+++ b/src/config/options.rs
@@ -62,7 +62,9 @@ impl ConfigOpts {
// Currently only used in tests
#[allow(dead_code)]
pub fn from_iter<Iter: Clone>(iter: Iter) -> Result<RuntimeConfig>
- where Iter: IntoIterator<Item = (String, String)> {
+ where
+ Iter: IntoIterator<Item = (String, String)>,
+ {
let base: ConfigOptsBase = envy::prefixed("DIPLONAT_").from_iter(iter.clone())?;
let consul: ConfigOptsConsul = envy::prefixed("DIPLONAT_CONSUL_").from_iter(iter.clone())?;
let acme: ConfigOptsAcme = envy::prefixed("DIPLONAT_ACME_").from_iter(iter.clone())?;