mirror of
https://github.com/dndx/phantun.git
synced 2025-01-18 22:09:30 +08:00
chore(deps): bump dependencies to latest
This commit is contained in:
parent
e86c5c5c50
commit
6955a1eb4c
@ -16,10 +16,10 @@ benchmark = []
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytes = "1"
|
bytes = "1"
|
||||||
pnet = "0.34"
|
pnet = "0"
|
||||||
tokio = { version = "1.14", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
rand = { version = "0.8", features = ["small_rng"] }
|
rand = { version = "0", features = ["small_rng"] }
|
||||||
log = "0.4"
|
log = "0"
|
||||||
internet-checksum = "0.2"
|
internet-checksum = "0"
|
||||||
tokio-tun = "0.11"
|
tokio-tun = "0"
|
||||||
flume = "0.11"
|
flume = "0"
|
||||||
|
@ -11,14 +11,14 @@ Transforms UDP stream into (fake) TCP streams that can go through
|
|||||||
Layer 3 & Layer 4 (NAPT) firewalls/NATs.
|
Layer 3 & Layer 4 (NAPT) firewalls/NATs.
|
||||||
"""
|
"""
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.0", features = ["cargo"] }
|
clap = { version = "4", features = ["cargo"] }
|
||||||
socket2 = { version = "0.5", features = ["all"] }
|
socket2 = { version = "0", features = ["all"] }
|
||||||
fake-tcp = { path = "../fake-tcp", version = "0.5" }
|
fake-tcp = { path = "../fake-tcp", version = "0" }
|
||||||
tokio = { version = "1.14", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
tokio-util = "0.7"
|
tokio-util = "0"
|
||||||
log = "0.4"
|
log = "0"
|
||||||
pretty_env_logger = "0.5"
|
pretty_env_logger = "0"
|
||||||
tokio-tun = "0.11"
|
tokio-tun = "0"
|
||||||
num_cpus = "1.13"
|
num_cpus = "1"
|
||||||
neli = "0.6"
|
neli = "0"
|
||||||
nix = { version = "0.28", features = ["net"] }
|
nix = { version = "0", features = ["net"] }
|
||||||
|
@ -153,8 +153,6 @@ async fn main() -> io::Result<()> {
|
|||||||
|
|
||||||
let tun = TunBuilder::new()
|
let tun = TunBuilder::new()
|
||||||
.name(tun_name) // if name is empty, then it is set by kernel.
|
.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 <tun-name> up`.
|
.up() // or set it up manually using `sudo ip link set <tun-name> up`.
|
||||||
.address(tun_local)
|
.address(tun_local)
|
||||||
.destination(tun_peer)
|
.destination(tun_peer)
|
||||||
|
@ -152,8 +152,6 @@ async fn main() -> io::Result<()> {
|
|||||||
|
|
||||||
let tun = TunBuilder::new()
|
let tun = TunBuilder::new()
|
||||||
.name(tun_name) // if name is empty, then it is set by kernel.
|
.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 <tun-name> up`.
|
.up() // or set it up manually using `sudo ip link set <tun-name> up`.
|
||||||
.address(tun_local)
|
.address(tun_local)
|
||||||
.destination(tun_peer)
|
.destination(tun_peer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user