From: Richard Schneidt Date: Thu, 16 Jul 2026 21:12:34 +0000 (+0200) Subject: privoxy: fix bug when using luci to save config X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0f55606b7fb9b900106ae4c2c2386370e1f44b53;p=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 --- diff --git a/net/privoxy/Makefile b/net/privoxy/Makefile index 903a7354e..194e6f4b5 100644 --- a/net/privoxy/Makefile +++ b/net/privoxy/Makefile @@ -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 diff --git a/net/privoxy/files/privoxy.config b/net/privoxy/files/privoxy.config index c5262e899..0a4245c7e 100644 --- a/net/privoxy/files/privoxy.config +++ b/net/privoxy/files/privoxy.config @@ -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' diff --git a/net/privoxy/files/privoxy.init b/net/privoxy/files/privoxy.init index e26bbbfa1..a9803001f 100644 --- a/net/privoxy/files/privoxy.init +++ b/net/privoxy/files/privoxy.init @@ -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)