[client, android] Fix/android enable server route (#3806)

Enable the server route; otherwise, the manager throws an error and the engine will restart.
This commit is contained in:
Zoltan Papp
2025-05-27 13:32:54 +02:00
committed by GitHub
parent 5523040acd
commit cdd27a9fe5
2 changed files with 0 additions and 29 deletions

View File

@@ -1,5 +1,3 @@
//go:build !android
package routemanager
import (

View File

@@ -1,27 +0,0 @@
//go:build android
package routemanager
import (
"context"
"fmt"
firewall "github.com/netbirdio/netbird/client/firewall/manager"
"github.com/netbirdio/netbird/client/internal/peer"
"github.com/netbirdio/netbird/client/internal/routemanager/iface"
"github.com/netbirdio/netbird/route"
)
type serverRouter struct {
}
func (r serverRouter) cleanUp() {
}
func (r serverRouter) updateRoutes(map[route.ID]*route.Route, bool) error {
return nil
}
func newServerRouter(context.Context, iface.WGIface, firewall.Manager, *peer.Status) (*serverRouter, error) {
return nil, fmt.Errorf("server route not supported on this os")
}