im pretty sure every subcommands use the config file

This commit is contained in:
lda
2026-04-27 04:13:50 +07:00 Verified
parent 1a259ed1cf
commit 4efa70c228
4 changed files with 86 additions and 24 deletions
+2
View File
@@ -167,6 +167,7 @@ pub async fn observe_dhcp_event(
hostname: Option<&str>,
) -> io::Result<bool> {
if !matches!(action, "add" | "update" | "old" | "remove") {
// old not emitted by hotplug
return Ok(false);
}
@@ -228,6 +229,7 @@ pub async fn observe_neighbor_event(
ip: Option<IpAddr>,
) -> io::Result<bool> {
if !matches!(action, "add" | "update" | "old" | "remove") {
// update and remove not emitted by hotplug
return Ok(false);
}
let Some(key) = mac