mwan3: fix mwan3_connected ubus output
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 12 Sep 2023 14:03:16 +0000 (16:03 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 12 Sep 2023 14:03:18 +0000 (16:03 +0200)
During the renameing of mwan3_connected_v4 to mwan3_connected_ipv4 and
mwan3_connected_v6 to mwan3_connected_ipv6 the adjustment in the ubus
call was forgotten. This commit fixes this.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/Makefile
net/mwan3/files/usr/libexec/rpcd/mwan3

index 99c01712d633c2d98f25ead747d5c94da17da95f..b31f4ce34209cbc22ff8d3183c14ff38ac509e9c 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mwan3
-PKG_VERSION:=2.11.7
+PKG_VERSION:=2.11.8
 PKG_RELEASE:=1
 PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>, \
                Aaron Goodman <aaronjg@alumni.stanford.edu>
index 8b336a450ed34357d5eac8225196510df664b141..3fce9b0d4d48cf570c2fa9770b164825e31aeda5 100755 (executable)
@@ -8,8 +8,8 @@
 report_connected_v4() {
        local address
 
-       if [ -n "$($IPT4 -S mwan3_connected 2> /dev/null)" ]; then
-               for address in $($IPS -o save list mwan3_connected_v4 | grep add | cut -d " " -f 3); do
+       if [ -n "$($IPT4 -S mwan3_connected_ipv4 2> /dev/null)" ]; then
+               for address in $($IPS -o save list mwan3_connected_ipv4 | grep add | cut -d " " -f 3); do
                        json_add_string "" "${address}"
                done
        fi
@@ -19,8 +19,8 @@ report_connected_v6() {
        [ $NO_IPV6 -ne 0 ] && return
        local address
 
-       if [ -n "$($IPT6 -S mwan3_connected 2> /dev/null)" ]; then
-               for address in $($IPS -o save list mwan3_connected_v6 | grep add | cut -d " " -f 3); do
+       if [ -n "$($IPT6 -S mwan3_connected_ipv6 2> /dev/null)" ]; then
+               for address in $($IPS -o save list mwan3_connected_ipv6 | grep add | cut -d " " -f 3); do
                        json_add_string "" "${address}"
                done
        fi