aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 3eb0dd4..a1dff3e 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -17,6 +17,8 @@ pub struct Source {
pub ipv6: Ipv6Set,
#[serde(default)]
pub required: bool,
+ #[serde(default = "default_allow_road_warriors")]
+ pub allow_road_warriors: bool,
}
#[derive(serde_derive::Deserialize)]
@@ -133,6 +135,11 @@ impl From<ConfigRepr> for Config {
}
#[inline]
+const fn default_allow_road_warriors() -> bool {
+ true
+}
+
+#[inline]
const fn default_min_keepalive() -> u32 {
10
}