mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2025-12-05 18:56:15 -06:00
return a PCAP error when trying to start a capture from an unknown adapter name
This commit is contained in:
@@ -4,6 +4,7 @@ All Sniffnet releases with the relative changes are documented in this file.
|
||||
|
||||
## [UNRELEASED]
|
||||
- Add animated welcome screen ([#1002](https://github.com/GyulyVGC/sniffnet/pull/1002))
|
||||
- Return a PCAP error when trying to start a capture from an unknown adapter name
|
||||
|
||||
## [1.4.2] - 2025-11-04
|
||||
- Send remote notifications via webhook ([#991](https://github.com/GyulyVGC/sniffnet/pull/991) — fixes [#841](https://github.com/GyulyVGC/sniffnet/issues/841))
|
||||
|
||||
@@ -20,12 +20,12 @@ impl MyDevice {
|
||||
return device;
|
||||
}
|
||||
}
|
||||
Device::lookup().unwrap_or(None).unwrap_or_else(|| Device {
|
||||
Device {
|
||||
name: String::new(),
|
||||
desc: None,
|
||||
addresses: vec![],
|
||||
flags: DeviceFlags::empty(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_pcap_device(device: Device) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user