aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3/files
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-07-03 15:04:33 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-07-05 18:58:52 +0100
commitcb02b42007878147b514b1cb86246bfa09615d35 (patch)
tree5fd2dbda3ff0e8075062e94d7a9ad1a92405ac1f /net/mwan3/files
parentf39a2bc32f12ccbd6e3a2857db7298494f607786 (diff)
mwan3: use default routes from additional tables
Until now the additional tables listed in gobal 'rt_table_lookup' were not considered for interfaces. In order to be able to also use interface-defined routes from tables other than main, consider also tables listed in 'rt_table_lookup'. Update version to 2.10.10 as requested by maintainer. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'net/mwan3/files')
-rw-r--r--net/mwan3/files/lib/mwan3/mwan3.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/mwan3/files/lib/mwan3/mwan3.sh b/net/mwan3/files/lib/mwan3/mwan3.sh
index 24af3dad5..a3a5ac89b 100644
--- a/net/mwan3/files/lib/mwan3/mwan3.sh
+++ b/net/mwan3/files/lib/mwan3/mwan3.sh
@@ -408,9 +408,17 @@ mwan3_delete_iface_iptables()
}
+mwan3_extra_tables_routes()
+{
+ $IP route list table "$1"
+}
+
mwan3_get_routes()
{
- $IP route list table main | sed -ne "$MWAN3_ROUTE_LINE_EXP" | uniq
+ {
+ $IP route list table main
+ config_list_foreach "globals" "rt_table_lookup" mwan3_extra_tables_routes
+ } | sed -ne "$MWAN3_ROUTE_LINE_EXP" | sort -u
}
mwan3_create_iface_route()