mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 11:21:04 +01:00
25 lines
477 B
Go
25 lines
477 B
Go
//go:build !linux && !ios
|
|
|
|
package routemanager
|
|
|
|
import (
|
|
"net"
|
|
"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 *net.Interface) error {
|
|
return genericAddVPNRoute(prefix, intf)
|
|
}
|
|
|
|
func removeVPNRoute(prefix netip.Prefix, intf *net.Interface) error {
|
|
return genericRemoveVPNRoute(prefix, intf)
|
|
}
|