aboutsummaryrefslogtreecommitdiff
path: root/src/config/options.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-04-05 09:47:58 +0200
committerAlex Auvolat <alex@adnab.me>2023-04-05 09:47:58 +0200
commitc356c4d1c471acd9d2f7e1dcfd3a432442177b48 (patch)
tree66f12a24e7a486457d1b907b1e268efd631eab8c /src/config/options.rs
parentf410230240b270ec01cfbf0002cbe9d3849eb03b (diff)
downloaddiplonat-c356c4d1c471acd9d2f7e1dcfd3a432442177b48.tar.gz
diplonat-c356c4d1c471acd9d2f7e1dcfd3a432442177b48.zip
IPv6-only mode
Diffstat (limited to 'src/config/options.rs')
-rw-r--r--src/config/options.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/options.rs b/src/config/options.rs
index 100c23c..fc9df16 100644
--- a/src/config/options.rs
+++ b/src/config/options.rs
@@ -19,6 +19,9 @@ pub struct ConfigOptsBase {
pub refresh_time: Option<u16>,
/// STUN server [default: stun.nextcloud.com:443]
pub stun_server: Option<String>,
+ /// IPv6-only mode (disables IGD, IPv4 firewall and IPv4 address autodiscovery) [default: false]
+ #[serde(default)]
+ pub ipv6_only: bool,
}
/// ACME configuration options