fix(phantun): use the same source IP for UDP packet replies (#178)

This fixes an issue when Phantun may choose a source IP different from
the destination IP in the incoming packet.

Closes #177
This commit is contained in:
WGH
2025-08-22 20:04:03 +03:00
committed by GitHub
parent 1252affdad
commit 19c9f2d9f2
3 changed files with 113 additions and 13 deletions

View File

@@ -19,6 +19,6 @@ pretty_env_logger = "0"
tokio-tun = "0"
num_cpus = "1"
neli = "0"
nix = { version = "0", features = ["net"] }
nix = { version = "0", features = ["net", "uio", "socket"] }
tokio = { workspace = true }
log = { workspace = true }