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),
|
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -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"))?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user