mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-06 11:36:48 +03:00
config: Fix process empty value for NFQWS_PORTS_xxx_KEEPALIVE
This commit is contained in:
@@ -90,8 +90,8 @@ NFQWS_UDP_PKT_IN="0"
|
|||||||
# normally it's needed only for stateless DPI that matches every packet in a single TCP session
|
# normally it's needed only for stateless DPI that matches every packet in a single TCP session
|
||||||
# typical example are plain HTTP keep alives
|
# typical example are plain HTTP keep alives
|
||||||
# this mode can be very CPU consuming. enable with care !
|
# this mode can be very CPU consuming. enable with care !
|
||||||
NFQWS_PORTS_TCP_KEEPALIVE=0
|
NFQWS_PORTS_TCP_KEEPALIVE=""
|
||||||
NFQWS_PORTS_UDP_KEEPALIVE=0
|
NFQWS_PORTS_UDP_KEEPALIVE=""
|
||||||
|
|
||||||
# use <HOSTLIST> and <HOSTLIST_NOAUTO> placeholders to engage standard hostlists and autohostlist in ipset dir
|
# use <HOSTLIST> and <HOSTLIST_NOAUTO> placeholders to engage standard hostlists and autohostlist in ipset dir
|
||||||
# hostlist markers are replaced to empty string if MODE_FILTER does not satisfy
|
# hostlist markers are replaced to empty string if MODE_FILTER does not satisfy
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ function sync_param
|
|||||||
if [ "$value" = "$TAB" ]; then
|
if [ "$value" = "$TAB" ]; then
|
||||||
value=""
|
value=""
|
||||||
fi
|
fi
|
||||||
|
if [ "$param" = "NFQWS_PORTS_TCP_KEEPALIVE" -o "$param" = "NFQWS_PORTS_UDP_KEEPALIVE" ]; then
|
||||||
|
[ "$value" = "0" ] && value=""
|
||||||
|
fi
|
||||||
if [ "$vtype" = "str" ]; then
|
if [ "$vtype" = "str" ]; then
|
||||||
set_param_value_str $param "$value"
|
set_param_value_str $param "$value"
|
||||||
else
|
else
|
||||||
@@ -94,8 +97,8 @@ sync_param NFQWS_TCP_PKT_OUT str
|
|||||||
sync_param NFQWS_TCP_PKT_IN str
|
sync_param NFQWS_TCP_PKT_IN str
|
||||||
sync_param NFQWS_UDP_PKT_OUT str
|
sync_param NFQWS_UDP_PKT_OUT str
|
||||||
sync_param NFQWS_UDP_PKT_IN str
|
sync_param NFQWS_UDP_PKT_IN str
|
||||||
sync_param NFQWS_PORTS_TCP_KEEPALIVE
|
sync_param NFQWS_PORTS_TCP_KEEPALIVE str
|
||||||
sync_param NFQWS_PORTS_UDP_KEEPALIVE
|
sync_param NFQWS_PORTS_UDP_KEEPALIVE str
|
||||||
sync_param NFQWS_OPT str
|
sync_param NFQWS_OPT str
|
||||||
|
|
||||||
ZAPRET_CONFIG="$ZAPRET_CONFIG__SAVED"
|
ZAPRET_CONFIG="$ZAPRET_CONFIG__SAVED"
|
||||||
|
|||||||
Reference in New Issue
Block a user