mirror of https://github.com/openwrt/packages.git
privoxy: fix bug when using luci to save config
Fix regression when saving config via luci, use correct syntax for uci vars. Signed-off-by: Richard Schneidt <ricsc@t-online.de>pull/30032/head
parent
69b555d22a
commit
0f55606b7f
|
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||
PKG_NAME:=privoxy
|
||||
PKG_VERSION:=4.1.0
|
||||
PKG_REAL_VERSION:=$(PKG_VERSION)-stable
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz
|
||||
PKG_SOURCE_URL:=@SF/ijbswa
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ config privoxy 'privoxy'
|
|||
option split_large_forms '0'
|
||||
option keep_alive_timeout '300'
|
||||
option socket_timeout '300'
|
||||
option receive-buffer-size '30000'
|
||||
option receive_buffer_size '30000'
|
||||
list permit_access '192.168.1.0/24'
|
||||
option debug_1 '0'
|
||||
option debug_512 '1'
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ _uci2conf() {
|
|||
echo $__OPT | grep -i "_ITEM" >/dev/null 2>&1 && __OPT=$(echo $__OPT | sed -e "s#_ITEM.*##g")
|
||||
# Ignore certificate generation options (used only in init script)
|
||||
case $__OPT in
|
||||
certdir|ca_common_name|ca_validity_days|cert_validity_days|cert_key_size|enable_ssl_bumping|boot_delay|_enabled)
|
||||
certdir|ca_common_name|ca_validity_days|cert_validity_days|cert_key_size|enable_ssl_bumping|boot_delay|_enabled|receive_buffer_size)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
|
@ -78,7 +78,7 @@ _uci2conf() {
|
|||
chown privoxy:privoxy $_LOGDIR/$_LOGFILE
|
||||
echo -e "logdir\t$_LOGDIR" >> $CFGTEMP
|
||||
echo -e "logfile\t$_LOGFILE" >> $CFGTEMP
|
||||
_RECEIVE_BUFFER_SIZE=$(uci -q get privoxy.privoxy.receive-buffer-size) || _RECEIVE_BUFFER_SIZE="30000"
|
||||
_RECEIVE_BUFFER_SIZE=$(uci -q get privoxy.privoxy.receive_buffer_size) || _RECEIVE_BUFFER_SIZE="30000"
|
||||
echo -e "receive-buffer-size\t$_RECEIVE_BUFFER_SIZE" >> $CFGTEMP
|
||||
# confdir
|
||||
# privoxy needs read access (possibly write access)
|
||||
|
|
|
|||
Loading…
Reference in New Issue