2024-06-13 13:24:24 +02:00
|
|
|
//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
|
|
|
|
}
|
2024-06-17 09:47:17 +02:00
|
|
|
|
|
|
|
func hasSeparateRouting() ([]netip.Prefix, error) {
|
2024-08-02 11:47:12 +02:00
|
|
|
return GetRoutesFromTable()
|
2024-06-17 09:47:17 +02:00
|
|
|
}
|