fix: add a new type of recognized interface
recognize E1000E interfaces on FreeBSD
This commit is contained in:
@@ -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"))?
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user