mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2025-12-23 22:29:01 -05:00
set PCAP immediate mode to false (otherwise timeout is ignored on some platform)
This commit is contained in:
@@ -135,7 +135,7 @@ fn from_source(source: &CaptureSource, pcap_out_path: Option<&String>) -> Result
|
||||
} else {
|
||||
200 // limit stored packets slice dimension (to keep more in the buffer)
|
||||
})
|
||||
.immediate_mode(true) // parse packets ASAP
|
||||
.immediate_mode(false)
|
||||
.timeout(150) // ensure UI is updated even if no packets are captured
|
||||
.open()?;
|
||||
Ok(Self::Live(cap))
|
||||
|
||||
Reference in New Issue
Block a user