im pretty sure every subcommands use the config file

This commit is contained in:
lda committed 2026-04-27 04:13:50 +07:00 Verified
1 parent 1a259ed1cf
commit 4efa70c228
4 files changed
+86 -24

No files matched your search

+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