From d9fa31ec33a334f484cd634e05abf0887b8748f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Cluseau?= Date: Wed, 7 Jan 2026 18:24:02 +0100 Subject: [PATCH] bootstrap: impl Default for NetworkInterface --- src/bootstrap.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/bootstrap.rs b/src/bootstrap.rs index 7f58e33..82c35ef 100644 --- a/src/bootstrap.rs +++ b/src/bootstrap.rs @@ -78,6 +78,17 @@ pub struct NetworkInterface { pub udev: Option, } +impl Default for NetworkInterface { + fn default() -> Self { + Self { + var: "iface".into(), + n: 1, + regexps: Vec::new(), + udev: Some(UdevFilter::Eq("INTERFACE".into(), "eth0".into())), + } + } +} + #[derive(Clone, Debug, serde::Deserialize, serde::Serialize)] pub struct SSHServer { pub listen: String,