From 717b33729192d16a38d20fdf6ad61d0ff8524368 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 15 Feb 2022 23:28:45 +0300 Subject: [PATCH] init: cosmetics --- init.d/openwrt/functions | 4 ++-- init.d/sysv/functions | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/init.d/openwrt/functions b/init.d/openwrt/functions index 6079ec6..4eddfe8 100644 --- a/init.d/openwrt/functions +++ b/init.d/openwrt/functions @@ -441,7 +441,7 @@ nft_fw_nfqws_post4() # $1 - filter ipv4 # $2 - queue number - local DEVICE wan_iface rule + local rule [ "$DISABLE_IPV4" = "1" ] || { rule="oifname @wanif meta l4proto tcp $1 ip daddr != @nozapret" @@ -454,7 +454,7 @@ nft_fw_nfqws_post6() # $1 - filter ipv6 # $2 - queue number - local DEVICE wan_iface rule + local rule [ "$DISABLE_IPV6" = "1" ] || { rule="oifname @wanif6 meta l4proto tcp $1 ip6 daddr != @nozapret6" diff --git a/init.d/sysv/functions b/init.d/sysv/functions index c8d2143..fbc2253 100644 --- a/init.d/sysv/functions +++ b/init.d/sysv/functions @@ -589,7 +589,7 @@ nft_fw_nfqws_post6() # $1 - filter ipv6 # $2 - queue number - local DEVICE rule + local rule [ "$DISABLE_IPV6" = "1" ] || { nft_print_op "$1" "nfqws postrouting (qnum $2)" 6