mwan3: Fix regression in removal of old WAN interfaces from firewall

In commit 502779755a, the code was
modified to use the mwan3_push_update helper, but the IPTR was not
defined per the address family being utilized.

Signed-off-by: Tim Nordell <tnordell@airgain.com>
This commit is contained in:
Tim Nordell 2023-06-29 12:43:53 -05:00
parent 9ac79ad469
commit 8b35da1d1d
No known key found for this signature in database
GPG Key ID: E13735A8935B4E22
1 changed files with 3 additions and 1 deletions

View File

@ -419,16 +419,18 @@ mwan3_create_iface_iptables()
mwan3_delete_iface_iptables()
{
local IPT update
local IPT IPTR update
config_get family "$1" family ipv4
if [ "$family" = "ipv4" ]; then
IPT="$IPT4"
IPTR="$IPT4R"
fi
if [ "$family" = "ipv6" ]; then
[ $NO_IPV6 -ne 0 ] && return
IPT="$IPT6"
IPTR="$IPT6R"
fi
update="*mangle"