hotfix(routing): ignore non-main table for routes
- When searching for default routes - When searching for local networks
This commit is contained in:
@@ -31,6 +31,10 @@ func (r *Routing) DefaultRoutes() (defaultRoutes []DefaultRoute, err error) {
|
||||
}
|
||||
|
||||
for _, route := range routes {
|
||||
if route.Table != 0 {
|
||||
// ignore non-main table
|
||||
continue
|
||||
}
|
||||
if route.Dst.IsValid() {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user