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:
parent
9ac79ad469
commit
8b35da1d1d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue