fix: add a new type of recognized interface
recognize E1000E interfaces on FreeBSD
This commit is contained in:
parent
cf53d7e1c9
commit
cd1f73bc86
@ -93,10 +93,10 @@ async fn run_command(
|
||||
Remote(Response),
|
||||
}
|
||||
|
||||
let Some(event) = tokio::select! {
|
||||
let Some(event) = tokio::select! (
|
||||
v = connection.get_response() => v.ok().map(Event::Remote),
|
||||
v = stdin.recv() => v.map(Event::Stdin)
|
||||
} else {
|
||||
) else {
|
||||
continue;
|
||||
};
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ impl Interface {
|
||||
.ok_or(anyhow!("could not get an ethernet interface"))?
|
||||
} else {
|
||||
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"))?
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user