2024-04-08 18:56:52 +02:00
|
|
|
//go:build !linux && !ios
|
2022-09-05 09:06:35 +02:00
|
|
|
|
|
|
|
package routemanager
|
|
|
|
|
|
|
|
import (
|
2024-04-03 11:11:46 +02:00
|
|
|
"net/netip"
|
2022-09-05 09:06:35 +02:00
|
|
|
"runtime"
|
2023-04-17 11:15:37 +02:00
|
|
|
|
|
|
|
log "github.com/sirupsen/logrus"
|
2022-09-05 09:06:35 +02:00
|
|
|
)
|
|
|
|
|
2024-04-08 18:56:52 +02:00
|
|
|
func enableIPForwarding() error {
|
|
|
|
log.Infof("Enable IP forwarding is not implemented on %s", runtime.GOOS)
|
2022-09-05 09:06:35 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-04-08 18:56:52 +02:00
|
|
|
func addVPNRoute(prefix netip.Prefix, intf string) error {
|
|
|
|
return genericAddVPNRoute(prefix, intf)
|
2024-04-03 11:11:46 +02:00
|
|
|
}
|
|
|
|
|
2024-04-08 18:56:52 +02:00
|
|
|
func removeVPNRoute(prefix netip.Prefix, intf string) error {
|
|
|
|
return genericRemoveVPNRoute(prefix, intf)
|
2024-04-03 11:11:46 +02:00
|
|
|
}
|