mirror of
				https://github.com/dndx/phantun.git
				synced 2025-10-31 09:55:35 +08:00 
			
		
		
		
	chore(*) use tokio-tun v0.5 instead of forked version. Bumped
				
					
				
			`fake-tcp` to `v0.2.3`
This commit is contained in:
		| @@ -1,6 +1,6 @@ | |||||||
| [package] | [package] | ||||||
| name = "fake-tcp" | name = "fake-tcp" | ||||||
| version = "0.2.2" | version = "0.2.3" | ||||||
| edition = "2021" | edition = "2021" | ||||||
| authors = ["Datong Sun <dndx@idndx.com>"] | authors = ["Datong Sun <dndx@idndx.com>"] | ||||||
| license = "MIT OR Apache-2.0" | license = "MIT OR Apache-2.0" | ||||||
| @@ -21,4 +21,4 @@ tokio = { version = "1.14", features = ["full"] } | |||||||
| rand = { version = "0.8", features = ["small_rng"] } | rand = { version = "0.8", features = ["small_rng"] } | ||||||
| log = "0.4" | log = "0.4" | ||||||
| internet-checksum = "0.2" | internet-checksum = "0.2" | ||||||
| dndx-fork-tokio-tun = "0.4" | tokio-tun = "0.5" | ||||||
|   | |||||||
| @@ -1,7 +1,6 @@ | |||||||
| #![cfg_attr(feature = "benchmark", feature(test))] | #![cfg_attr(feature = "benchmark", feature(test))] | ||||||
|  |  | ||||||
| pub mod packet; | pub mod packet; | ||||||
| extern crate dndx_fork_tokio_tun as tokio_tun; |  | ||||||
|  |  | ||||||
| use bytes::{Bytes, BytesMut}; | use bytes::{Bytes, BytesMut}; | ||||||
| use log::{error, info, trace, warn}; | use log::{error, info, trace, warn}; | ||||||
|   | |||||||
| @@ -13,9 +13,9 @@ Layer 3 & Layer 4 (NAPT) firewalls/NATs. | |||||||
| [dependencies] | [dependencies] | ||||||
| clap = "2.34" | clap = "2.34" | ||||||
| socket2 = { version = "0.4", features = ["all"] } | socket2 = { version = "0.4", features = ["all"] } | ||||||
| fake-tcp = "0.2.2" | fake-tcp = "0.2" | ||||||
| tokio = { version = "1.14", features = ["full"] } | tokio = { version = "1.14", features = ["full"] } | ||||||
| log = "0.4" | log = "0.4" | ||||||
| pretty_env_logger = "0.4" | pretty_env_logger = "0.4" | ||||||
| dndx-fork-tokio-tun = "0.4" | tokio-tun = "0.5" | ||||||
| num_cpus = "1.13" | num_cpus = "1.13" | ||||||
|   | |||||||
| @@ -1,5 +1,3 @@ | |||||||
| extern crate dndx_fork_tokio_tun as tokio_tun; |  | ||||||
|  |  | ||||||
| use clap::{crate_version, App, Arg}; | use clap::{crate_version, App, Arg}; | ||||||
| use fake_tcp::packet::MAX_PACKET_LEN; | use fake_tcp::packet::MAX_PACKET_LEN; | ||||||
| use fake_tcp::{Socket, Stack}; | use fake_tcp::{Socket, Stack}; | ||||||
|   | |||||||
| @@ -1,5 +1,3 @@ | |||||||
| extern crate dndx_fork_tokio_tun as tokio_tun; |  | ||||||
|  |  | ||||||
| use clap::{crate_version, App, Arg}; | use clap::{crate_version, App, Arg}; | ||||||
| use fake_tcp::packet::MAX_PACKET_LEN; | use fake_tcp::packet::MAX_PACKET_LEN; | ||||||
| use fake_tcp::Stack; | use fake_tcp::Stack; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user