mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-11 17:31:12 +01:00
25 lines
502 B
Go
25 lines
502 B
Go
|
//go:build !linux && !ios
|
||
|
|
||
|
package systemops
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
"net/netip"
|
||
|
"runtime"
|
||
|
|
||
|
log "github.com/sirupsen/logrus"
|
||
|
)
|
||
|
|
||
|
func (r *SysOps) AddVPNRoute(prefix netip.Prefix, intf *net.Interface) error {
|
||
|
return r.genericAddVPNRoute(prefix, intf)
|
||
|
}
|
||
|
|
||
|
func (r *SysOps) RemoveVPNRoute(prefix netip.Prefix, intf *net.Interface) error {
|
||
|
return r.genericRemoveVPNRoute(prefix, intf)
|
||
|
}
|
||
|
|
||
|
func EnableIPForwarding() error {
|
||
|
log.Infof("Enable IP forwarding is not implemented on %s", runtime.GOOS)
|
||
|
return nil
|
||
|
}
|