Compare commits

..

2 Commits

Author SHA1 Message Date
a6dc420275 cargo update 2026-01-07 18:24:14 +01:00
d9fa31ec33 bootstrap: impl Default for NetworkInterface 2026-01-07 18:24:02 +01:00
3 changed files with 516 additions and 77 deletions

580
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -30,7 +30,7 @@ lz4 = "1.28.1"
nix = { version = "0.30.1", features = ["user"] }
openssl = "0.10.73"
page_size = "0.6.0"
reqwest = { version = "0.12.20", features = ["json", "stream", "native-tls"] }
reqwest = { version = "0.13.1", features = ["json", "stream", "native-tls"] }
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
serde_yaml = "0.9.34"

View File

@ -78,6 +78,17 @@ pub struct NetworkInterface {
pub udev: Option<UdevFilter>,
}
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,