mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
mwan3: fix mwan3_connected ubus output
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>
(cherry picked from commit a56e111c49)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user