bump version to v2.5.0 (#1715)

This commit is contained in:
KKRainbow
2025-12-28 23:19:30 +08:00
committed by GitHub
parent c19cd1bff3
commit 39b056c87a
14 changed files with 34 additions and 58 deletions
@@ -225,7 +225,12 @@ fn get_or_create_worker(interface_name: &str) -> io::Result<Arc<InterfaceWorker>
let interface = interfaces
.into_iter()
.find(|iface| iface.name == interface_name)
.expect("Network interface not found");
.ok_or_else(|| {
io::Error::new(
io::ErrorKind::NotFound,
format!("Network interface '{}' not found", interface_name),
)
})?;
let worker = InterfaceWorker::new(interface)?;
INTERFACE_MANAGERS.insert(interface_name.to_string(), Arc::downgrade(&worker));