mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-02 04:53:51 +01:00
bb0d5c5baf
* Add Linux legacy routing if ip rule functionality is not available * Ignore exclusion route errors if host has no route * Exclude iOS from route manager * Also retrieve IPv6 routes * Ignore loopback addresses not being in the main table * Ignore "not supported" errors on cleanup * Fix regression in ListenUDP not using fwmarks
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)
|
|
}
|