feat: forward-by-default, auto recursive mode, Linux install fixes #27

Merged
razvandimescu merged 7 commits from feat/auto-recursive-install-fixes into main 2026-04-01 13:49:16 +08:00
Showing only changes of commit 5626da097d - Show all commits

View File

@@ -114,6 +114,10 @@ impl Default for UpstreamConfig {
} }
} }
fn default_true() -> bool {
true
}
fn default_srtt() -> bool { fn default_srtt() -> bool {
true true
} }
@@ -356,14 +360,23 @@ fn default_lan_peer_timeout() -> u64 {
90 90
} }
#[derive(Deserialize, Clone, Default)] #[derive(Deserialize, Clone)]
pub struct DnssecConfig { pub struct DnssecConfig {
#[serde(default)] #[serde(default = "default_true")]
pub enabled: bool, pub enabled: bool,
#[serde(default)] #[serde(default)]
pub strict: bool, pub strict: bool,
} }
impl Default for DnssecConfig {
fn default() -> Self {
DnssecConfig {
enabled: true,
strict: false,
}
}
}
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;