Add routes

This commit is contained in:
Owen
2025-05-03 17:10:46 -04:00
parent 13e7f55b30
commit becc214078
2 changed files with 24 additions and 1 deletions

View File

@@ -600,6 +600,10 @@ func configureWindows(interfaceName string, ip net.IP, ipNet *net.IPNet) error {
}
func WindowsAddRoute(destination string, gateway string, interfaceName string) error {
if runtime.GOOS != "windows" {
return nil
}
var cmd *exec.Cmd
// Parse destination to get the IP and subnet