From 3b80d11e2b5a7a6f9aa74d13a2ff76f701c7bcc6 Mon Sep 17 00:00:00 2001 From: Anna Tikhomirova Date: Fri, 28 Apr 2023 23:12:37 +0300 Subject: [PATCH] mwan3: fix addition of routes to mwan3_connected ipset Addition of routes to mwan3_connected ipset is broken. The ipset name was changed from mwan3_connected_v4/6 to mwan3_connected_ipv4/6, but this change was not reflected in mwan3rtmon. Signed-off-by: Anna Tikhomirova * Update commit message Signed-off-by: Florian Eckert (cherry picked from commit 84b3de9eda29666bb96b656cdadaffd1c69897e7) --- net/mwan3/files/usr/sbin/mwan3rtmon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mwan3/files/usr/sbin/mwan3rtmon b/net/mwan3/files/usr/sbin/mwan3rtmon index b7f03cc874..d8ccffeb04 100755 --- a/net/mwan3/files/usr/sbin/mwan3rtmon +++ b/net/mwan3/files/usr/sbin/mwan3rtmon @@ -75,7 +75,7 @@ mwan3_rtmon_route_handle() if [ "$route_line" = "$1" ]; then action="replace" - $IPS -! add mwan3_connected_${route_family##ip} ${route_line%% *} + $IPS -! add mwan3_connected_${route_family} ${route_line%% *} else action="del" mwan3_set_connected_${route_family} -- 2.30.2