mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-06 11:36:48 +03:00
config: Remove comment-line from NFQWS_OPT on sync
This commit is contained in:
@@ -51,6 +51,9 @@ function sync_param
|
||||
if [ "$param" = "NFQWS_PORTS_TCP_KEEPALIVE" -o "$param" = "NFQWS_PORTS_UDP_KEEPALIVE" ]; then
|
||||
[ "$value" = "0" ] && value=""
|
||||
fi
|
||||
if [ "$param" = "NFQWS_OPT" -a "$value" != "" ]; then
|
||||
value=$( echo -n "$value" | sed '/^#/d' )
|
||||
fi
|
||||
if [ "$vtype" = "str" ]; then
|
||||
set_param_value_str $param "$value"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user