]> git.99rst.org Git - openwrt-packages.git/commitdiff
privoxy: fix bug when using luci to save config
authorRichard Schneidt <redacted>
Thu, 16 Jul 2026 21:12:34 +0000 (23:12 +0200)
committerAlexandru Ardelean <redacted>
Sat, 18 Jul 2026 16:20:40 +0000 (19:20 +0300)
Fix regression when saving config via luci, use correct syntax for uci vars.

Signed-off-by: Richard Schneidt <redacted>
net/privoxy/Makefile
net/privoxy/files/privoxy.config
net/privoxy/files/privoxy.init

index 903a7354ea166adf86195d58575882ccd635737c..194e6f4b56b5d52bc54a412bf2b23b586947f615 100644 (file)
@@ -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
index c5262e899849b6b91bf4caed184d8c9d7aaeda1b..0a4245c7e1696004c120d08a67776f838ba64b3b 100644 (file)
@@ -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'
index e26bbbfa1020b8b891a206598a5e433724e26232..a9803001f43601e93570da2b0e4b6102c8cb4a7f 100644 (file)
@@ -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)
git clone https://git.99rst.org/PROJECT