mirror of
https://github.com/fosrl/olm.git
synced 2026-02-23 21:36:40 +00:00
Add routes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user