Add userspace routing

This commit is contained in:
Viktor Liu
2024-12-30 01:38:28 +01:00
parent b3c87cb5d1
commit 4199da4a45
21 changed files with 712 additions and 54 deletions
+4 -4
View File
@@ -383,10 +383,10 @@ func (m *DefaultManager) classifyRoutes(newRoutes []*route.Route) (map[route.ID]
if newRoute.Peer == m.pubKey {
ownNetworkIDs[haID] = true
// only linux is supported for now
if runtime.GOOS != "linux" {
log.Warnf("received a route to manage, but agent doesn't support router mode on %s OS", runtime.GOOS)
continue
}
//if runtime.GOOS != "linux" {
// log.Warnf("received a route to manage, but agent doesn't support router mode on %s OS", runtime.GOOS)
// continue
//}
newServerRoutesMap[newRoute.ID] = newRoute
}
}