diff --git a/fake-tcp/Cargo.toml b/fake-tcp/Cargo.toml index 97a12ba..e02163a 100644 --- a/fake-tcp/Cargo.toml +++ b/fake-tcp/Cargo.toml @@ -16,10 +16,10 @@ benchmark = [] [dependencies] bytes = "1" -pnet = "0.34" -tokio = { version = "1.14", features = ["full"] } -rand = { version = "0.8", features = ["small_rng"] } -log = "0.4" -internet-checksum = "0.2" -tokio-tun = "0.11" -flume = "0.11" +pnet = "0" +tokio = { version = "1", features = ["full"] } +rand = { version = "0", features = ["small_rng"] } +log = "0" +internet-checksum = "0" +tokio-tun = "0" +flume = "0" diff --git a/phantun/Cargo.toml b/phantun/Cargo.toml index 634f5a5..a64082c 100644 --- a/phantun/Cargo.toml +++ b/phantun/Cargo.toml @@ -11,14 +11,14 @@ Transforms UDP stream into (fake) TCP streams that can go through Layer 3 & Layer 4 (NAPT) firewalls/NATs. """ [dependencies] -clap = { version = "4.0", features = ["cargo"] } -socket2 = { version = "0.5", features = ["all"] } -fake-tcp = { path = "../fake-tcp", version = "0.5" } -tokio = { version = "1.14", features = ["full"] } -tokio-util = "0.7" -log = "0.4" -pretty_env_logger = "0.5" -tokio-tun = "0.11" -num_cpus = "1.13" -neli = "0.6" -nix = { version = "0.28", features = ["net"] } +clap = { version = "4", features = ["cargo"] } +socket2 = { version = "0", features = ["all"] } +fake-tcp = { path = "../fake-tcp", version = "0" } +tokio = { version = "1", features = ["full"] } +tokio-util = "0" +log = "0" +pretty_env_logger = "0" +tokio-tun = "0" +num_cpus = "1" +neli = "0" +nix = { version = "0", features = ["net"] } diff --git a/phantun/src/bin/client.rs b/phantun/src/bin/client.rs index f19a28f..e0c4875 100644 --- a/phantun/src/bin/client.rs +++ b/phantun/src/bin/client.rs @@ -153,8 +153,6 @@ async fn main() -> io::Result<()> { let tun = TunBuilder::new() .name(tun_name) // if name is empty, then it is set by kernel. - .tap(false) // false (default): TUN, true: TAP. - .packet_info(false) // false: IFF_NO_PI, default is true. .up() // or set it up manually using `sudo ip link set up`. .address(tun_local) .destination(tun_peer) diff --git a/phantun/src/bin/server.rs b/phantun/src/bin/server.rs index 58a373a..5f33f39 100644 --- a/phantun/src/bin/server.rs +++ b/phantun/src/bin/server.rs @@ -152,8 +152,6 @@ async fn main() -> io::Result<()> { let tun = TunBuilder::new() .name(tun_name) // if name is empty, then it is set by kernel. - .tap(false) // false (default): TUN, true: TAP. - .packet_info(false) // false: IFF_NO_PI, default is true. .up() // or set it up manually using `sudo ip link set up`. .address(tun_local) .destination(tun_peer)