mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-26 10:03:47 +01:00
3875c29f6b
This reverts commit 9f32ccd453
.
24 lines
454 B
Go
24 lines
454 B
Go
//go:build !linux && !ios
|
|
|
|
package routemanager
|
|
|
|
import (
|
|
"net/netip"
|
|
"runtime"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func enableIPForwarding() error {
|
|
log.Infof("Enable IP forwarding is not implemented on %s", runtime.GOOS)
|
|
return nil
|
|
}
|
|
|
|
func addVPNRoute(prefix netip.Prefix, intf string) error {
|
|
return genericAddVPNRoute(prefix, intf)
|
|
}
|
|
|
|
func removeVPNRoute(prefix netip.Prefix, intf string) error {
|
|
return genericRemoveVPNRoute(prefix, intf)
|
|
}
|