fix: addressed edge cases for external routing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user