use windows api instead of netsh command to manage game's network access

This commit is contained in:
2025-04-19 10:34:10 +01:00
parent 89892ef592
commit 09f5a3895b
3 changed files with 119 additions and 59 deletions
+1
View File
@@ -25,6 +25,7 @@ windows = { version = "0.61.1", features = [
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
"Win32_Security",
"Win32_NetworkManagement_WindowsFirewall",
] }
winreg = "0.55.0"