You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ad src/capture/mod.rs:113, new_raw is accepting a Option<&str> as input, this method is not only used by inactive handle, but also used by active handle reading pcap files.
More specific, at src/capture/activated/offline.rs:20, we do path.as_ref().to_str(), but apparently this would failed if the path is not a UTF8 encoded Path.
The purpose of PathBuf & Path is to avoid encoding issue, to_str() is not an elegant way.