Skip to content

Commit

Permalink
Remove use of packet_information
Browse files Browse the repository at this point in the history
  • Loading branch information
SajjadPourali committed Dec 1, 2024
1 parent 2934d87 commit 919a486
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/tun_wintun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
#[cfg(not(target_os = "windows"))]
config.destination(_gateway);

#[cfg(target_os = "linux")]
config.platform_config(|config| {
config.packet_information(true);
});
// #[cfg(target_os = "linux")]
// config.platform_config(|config| {
// config.ensure_root_privileges(true);
// });

let mut ipstack_config = ipstack::IpStackConfig::default();
ipstack_config.mtu(MTU);
Expand Down

0 comments on commit 919a486

Please sign in to comment.