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
2 changed files with 3 additions and 3 deletions

View File

@@ -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"))?
};