use winapi to config ip and route (remove dep on netsh) (#1079)

On some windows machines can not execut netsh.
Also this avoid black cmd window when using gui.
This commit is contained in:
Sijie.Sun
2025-07-05 16:50:09 +08:00
committed by GitHub
parent d0cfc49806
commit a4bb555fac
13 changed files with 1251 additions and 164 deletions
+1
View File
@@ -800,6 +800,7 @@ impl NetworkOptions {
if let Some(dev_name) = &self.dev_name {
f.dev_name = dev_name.clone()
}
println!("mtu: {}, {:?}", f.mtu, self.mtu);
if let Some(mtu) = self.mtu {
f.mtu = mtu as u32;
}