fix: addressed edge cases for external routing

This commit is contained in:
Andrew Rioux
2023-08-17 18:18:05 -04:00
parent b770d53f57
commit 1517ca6f1c
3 changed files with 20 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ async fn handled_main() -> anyhow::Result<()> {
let mut interfaces = pcap_sys::PcapDevIterator::new()?;
let interface_name = interfaces
.find(|eth| eth.starts_with("eth"))
.find(|eth| eth.starts_with("eth") || eth.starts_with("en"))
.ok_or(anyhow!("Could not get an ethernet interface"))?;
log::info!("Attaching to interface {}", &interface_name);