From c964677913eaffc125c8779d885129fd446b9ff3 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 31 Oct 2024 14:33:29 +0300 Subject: [PATCH] init.d: fix apply of NFQWS_OPT_BASE --- init.d/openwrt/zapret | 2 +- init.d/sysv/functions | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/openwrt/zapret b/init.d/openwrt/zapret index 1743e33..2a70191 100755 --- a/init.d/openwrt/zapret +++ b/init.d/openwrt/zapret @@ -128,7 +128,7 @@ standard_mode_daemons() run_tpws_socks 2 "$opt" } [ "$NFQWS_ENABLE" = 1 ] && check_bad_ws_options 1 "$NFQWS_OPT" && { - opt="--qnum=$QNUM $NFQWS_OPT" + opt="--qnum=$QNUM $NFQWS_OPT_BASE $NFQWS_OPT" filter_apply_hostlist_target opt run_daemon 3 "$NFQWS" "$opt" } diff --git a/init.d/sysv/functions b/init.d/sysv/functions index 5cc91fd..d4dea2e 100644 --- a/init.d/sysv/functions +++ b/init.d/sysv/functions @@ -296,7 +296,7 @@ standard_mode_daemons() do_tpws_socks $1 2 "$opt" } [ "$NFQWS_ENABLE" = 1 ] && check_bad_ws_options $1 "$NFQWS_OPT" && { - opt="--qnum=$QNUM $NFQWS_OPT_BASE $NFQWS_OPT" + opt="--qnum=$QNUM $NFQWS_OPT" filter_apply_hostlist_target opt do_nfqws $1 3 "$opt" }