mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-19 16:56:39 +00:00
[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:
@@ -1,5 +1,3 @@
|
|||||||
//go:build !android
|
|
||||||
|
|
||||||
package routemanager
|
package routemanager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -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")
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user