fix: add a new type of recognized interface

recognize E1000E interfaces on FreeBSD
This commit is contained in:
Andrew Rioux 2025-10-20 08:27:01 -04:00
parent cf53d7e1c9
commit cd1f73bc86
Signed by: andrew.rioux
GPG Key ID: 9B8BAC47C17ABB94
2 changed files with 3 additions and 3 deletions

View File

@ -93,10 +93,10 @@ async fn run_command(
Remote(Response), Remote(Response),
} }
let Some(event) = tokio::select! { let Some(event) = tokio::select! (
v = connection.get_response() => v.ok().map(Event::Remote), v = connection.get_response() => v.ok().map(Event::Remote),
v = stdin.recv() => v.map(Event::Stdin) v = stdin.recv() => v.map(Event::Stdin)
} else { ) else {
continue; continue;
}; };

View File

@ -34,7 +34,7 @@ impl Interface {
.ok_or(anyhow!("could not get an ethernet interface"))? .ok_or(anyhow!("could not get an ethernet interface"))?
} else { } else {
interfaces interfaces
.find(|eth| eth.starts_with("eth") || eth.starts_with("en") || eth.starts_with("vtnet") || eth.starts_with("vmx")) .find(|eth| eth.starts_with("eth") || eth.starts_with("em") || eth.starts_with("en") || eth.starts_with("vtnet") || eth.starts_with("vmx"))
.ok_or(anyhow!("could not get an ethernet interface"))? .ok_or(anyhow!("could not get an ethernet interface"))?
}; };