Fix udp and win route (#16)

* robust udp tunnel
* fix windows route add
* use pnet to get index
* windows disable udp reset
This commit is contained in:
Sijie.Sun
2024-02-08 16:27:18 +08:00
committed by GitHub
parent 2c2e41be24
commit 7fc4aecdb9
8 changed files with 285 additions and 11 deletions

View File

@@ -87,6 +87,9 @@ public-ip = { version = "0.2", features = ["default"] }
clap = { version = "4.4", features = ["derive"] }
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.52", features = ["Win32_Networking_WinSock", "Win32_NetworkManagement_IpHelper", "Win32_Foundation", "Win32_System_IO"] }
[build-dependencies]
tonic-build = "0.10"