mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-06 08:20:34 +05:00
init: openwrt do not apply rules if WAN interface is unknown (yet)
This commit is contained in:
parent
c82afbd80b
commit
48da387626
@ -95,7 +95,7 @@ fw_nfqws_post_x()
|
||||
network_find_wan${4}_all ifaces
|
||||
call_for_multiple_items network_get_device DWAN "$ifaces"
|
||||
|
||||
_fw_nfqws_post${4} $1 "$2" $3 "$(unique $DWAN)"
|
||||
[ -n "$DWAN" ] && _fw_nfqws_post${4} $1 "$2" $3 "$(unique $DWAN)"
|
||||
}
|
||||
fw_nfqws_post4()
|
||||
{
|
||||
@ -119,7 +119,7 @@ fw_tpws_x()
|
||||
network_find_wan${4}_all ifaces
|
||||
call_for_multiple_items network_get_device DWAN "$ifaces"
|
||||
|
||||
_fw_tpws${4} $1 "$2" $3 "$DLAN" "$(unique $DWAN)"
|
||||
[ -n "$DWAN" ] && _fw_tpws${4} $1 "$2" $3 "$DLAN" "$(unique $DWAN)"
|
||||
}
|
||||
fw_tpws4()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user