2023-12-18 11:46:58 +01:00
|
|
|
//go:build android
|
|
|
|
|
2023-04-17 11:15:37 +02:00
|
|
|
package routemanager
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2023-08-12 11:42:36 +02:00
|
|
|
"fmt"
|
2023-04-17 11:15:37 +02:00
|
|
|
|
2023-12-08 10:48:21 +01:00
|
|
|
firewall "github.com/netbirdio/netbird/client/firewall/manager"
|
2024-10-02 18:24:22 +02:00
|
|
|
"github.com/netbirdio/netbird/client/iface"
|
2024-03-12 19:06:16 +01:00
|
|
|
"github.com/netbirdio/netbird/client/internal/peer"
|
2025-01-07 20:38:18 +01:00
|
|
|
"github.com/netbirdio/netbird/route"
|
2023-04-17 11:15:37 +02:00
|
|
|
)
|
|
|
|
|
2025-01-07 20:38:18 +01:00
|
|
|
type serverRouter struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r serverRouter) cleanUp() {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r serverRouter) updateRoutes(map[route.ID]*route.Route) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func newServerRouter(context.Context, iface.IWGIface, firewall.Manager, *peer.Status) (*serverRouter, error) {
|
2023-08-12 11:42:36 +02:00
|
|
|
return nil, fmt.Errorf("server route not supported on this os")
|
2023-04-17 11:15:37 +02:00
|
|
|
}
|