Skip to content

Commit

Permalink
chore(*) use tokio-tun v0.5 instead of forked version. Bumped
Browse files Browse the repository at this point in the history
`fake-tcp` to `v0.2.3`
  • Loading branch information
dndx committed Dec 7, 2021
1 parent def134d commit 7db7164
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions fake-tcp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fake-tcp"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
authors = ["Datong Sun <dndx@idndx.com>"]
license = "MIT OR Apache-2.0"
Expand All @@ -21,4 +21,4 @@ tokio = { version = "1.14", features = ["full"] }
rand = { version = "0.8", features = ["small_rng"] }
log = "0.4"
internet-checksum = "0.2"
dndx-fork-tokio-tun = "0.4"
tokio-tun = "0.5"
1 change: 0 additions & 1 deletion fake-tcp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![cfg_attr(feature = "benchmark", feature(test))]

pub mod packet;
extern crate dndx_fork_tokio_tun as tokio_tun;

use bytes::{Bytes, BytesMut};
use log::{error, info, trace, warn};
Expand Down
4 changes: 2 additions & 2 deletions phantun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Layer 3 & Layer 4 (NAPT) firewalls/NATs.
[dependencies]
clap = "2.34"
socket2 = { version = "0.4", features = ["all"] }
fake-tcp = "0.2.2"
fake-tcp = "0.2"
tokio = { version = "1.14", features = ["full"] }
log = "0.4"
pretty_env_logger = "0.4"
dndx-fork-tokio-tun = "0.4"
tokio-tun = "0.5"
num_cpus = "1.13"
2 changes: 0 additions & 2 deletions phantun/src/bin/client.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate dndx_fork_tokio_tun as tokio_tun;

use clap::{crate_version, App, Arg};
use fake_tcp::packet::MAX_PACKET_LEN;
use fake_tcp::{Socket, Stack};
Expand Down
2 changes: 0 additions & 2 deletions phantun/src/bin/server.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate dndx_fork_tokio_tun as tokio_tun;

use clap::{crate_version, App, Arg};
use fake_tcp::packet::MAX_PACKET_LEN;
use fake_tcp::Stack;
Expand Down

0 comments on commit 7db7164

Please sign in to comment.