Skip to content

Commit

Permalink
change device
Browse files Browse the repository at this point in the history
  • Loading branch information
xmh0511 committed Sep 12, 2024
1 parent ded510b commit 65ad02f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ fn main_entry(quit: Receiver<()>) -> Result<(), BoxError> {

let mut config = tun_rs::Configuration::default();

#[cfg(any(target_os = "windows", target_os = "linux", target_os = "freebsd",))]
config.layer(Layer::L2);
// #[cfg(any(target_os = "windows", target_os = "linux", target_os = "freebsd",))]
// config.layer(Layer::L2);

config
.address_with_prefix(
Expand Down

0 comments on commit 65ad02f

Please sign in to comment.