diff options
| -rw-r--r-- | src/platform.rs | 2 | ||||
| -rw-r--r-- | src/platform/windows.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/platform.rs b/src/platform.rs index 1ec9b39..3118966 100644 --- a/src/platform.rs +++ b/src/platform.rs @@ -24,7 +24,7 @@ Press Ctrl+C or close this window to stop. pub mod windows; #[cfg(windows)] -pub use windows::{bootstrap, run, local_time, send_to_raw}; +pub use windows::{bootstrap, run, local_time, send_to_raw, pause}; #[cfg(target_os = "linux")] pub mod linux; diff --git a/src/platform/windows.rs b/src/platform/windows.rs index c947b6a..8447d55 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -25,7 +25,7 @@ use std::sync::{LazyLock, Mutex}; use std::thread; use crate::{opt, pkt}; -fn pause() { +pub fn pause() { println!("Press any key to exit..."); unsafe extern "C" { fn _getch() -> i32; } @@ -37,7 +37,7 @@ fn open_handle(filter: &str, flags: prelude::WinDivertFlags) -> WinDivert<Networ let h = match WinDivert::network(&filter, 0, flags) { Ok(h) => { - crate::info!("windivert: open: {}", filter); + crate::info!("windivert: open filter {filter}"); h }, Err(e) => { |
