mirror of
https://github.com/dndx/phantun.git
synced 2025-10-16 10:45:35 +08:00
Some adaption and alligned to the source code from dndx
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "phantun"
|
||||
version = "0.6.0"
|
||||
version = "0.6.5"
|
||||
edition = "2021"
|
||||
authors = ["Datong Sun <dndx@idndx.com>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
@@ -13,13 +13,13 @@ Layer 3 & Layer 4 (NAPT) firewalls/NATs.
|
||||
[dependencies]
|
||||
clap = { version = "4.2.5", features = ["cargo"] }
|
||||
socket2 = { version = "0.5.2", features = ["all"] }
|
||||
fake-tcp = { path = "../fake-tcp", version = "0.5" }
|
||||
fake-tcp = { path = "../fake-tcp", version = "0.5.5" }
|
||||
tokio = { version = "1.28.0", features = ["full"] }
|
||||
tokio-util = "0.7.8"
|
||||
log = "0.4.17"
|
||||
env_logger = "0.10.0"
|
||||
chrono = "0.4.24"
|
||||
tokio-tun = "0.7"
|
||||
chrono = "0.4.24"
|
||||
tokio-tun = "0.9.1"
|
||||
num_cpus = "1.15.0"
|
||||
neli = "0.6.4"
|
||||
nix = "0.26.2"
|
||||
nix = { version = "0.27.1", features = ["net"] }
|
||||
|
@@ -96,7 +96,7 @@ async fn main() -> io::Result<()> {
|
||||
.required(false)
|
||||
.help("Only use IPv4 address when connecting to remote")
|
||||
.action(ArgAction::SetTrue)
|
||||
.conflicts_with_all(&["tun_local6", "tun_peer6"]),
|
||||
.conflicts_with_all(["tun_local6", "tun_peer6"]),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("tun_local6")
|
||||
|
@@ -96,7 +96,7 @@ async fn main() -> io::Result<()> {
|
||||
.required(false)
|
||||
.help("Do not assign IPv6 addresses to Tun interface")
|
||||
.action(ArgAction::SetTrue)
|
||||
.conflicts_with_all(&["tun_local6", "tun_peer6"]),
|
||||
.conflicts_with_all(["tun_local6", "tun_peer6"]),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("tun_local6")
|
||||
|
Reference in New Issue
Block a user