From 80618e704647ebd921bedf7b27112018e20eb1fc Mon Sep 17 00:00:00 2001 From: Xu Wang Date: Mon, 24 Nov 2025 08:45:30 -0500 Subject: [PATCH] tinyproxy: support DisableViaHeader option This option is required for the proxy to be transparent, and has been supported since at least 2009. Description taken from upstream. Signed-off-by: Xu Wang --- net/tinyproxy/Makefile | 2 +- net/tinyproxy/files/tinyproxy.config | 9 +++++++++ net/tinyproxy/files/tinyproxy.init | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/net/tinyproxy/Makefile b/net/tinyproxy/Makefile index 75cb0fce6e..e0334c36b0 100644 --- a/net/tinyproxy/Makefile +++ b/net/tinyproxy/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tinyproxy PKG_VERSION:=1.11.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://github.com/tinyproxy/tinyproxy/releases/download/$(PKG_VERSION) diff --git a/net/tinyproxy/files/tinyproxy.config b/net/tinyproxy/files/tinyproxy.config index e62ce1cf03..b52ab64241 100644 --- a/net/tinyproxy/files/tinyproxy.config +++ b/net/tinyproxy/files/tinyproxy.config @@ -147,6 +147,15 @@ list Allow 127.0.0.1 # option ViaProxyName "tinyproxy" +# +# DisableViaHeader: When this is set to yes, Tinyproxy does NOT add +# the Via header to the requests. This virtually puts Tinyproxy into +# stealth mode. Note that RFC 2616 requires proxies to set the Via +# header, so by enabling this option, you break compliance. +# Don't disable the Via header unless you know what you are doing... +# +#option DisableViaHeader 1 + # # The location of the filter file. # diff --git a/net/tinyproxy/files/tinyproxy.init b/net/tinyproxy/files/tinyproxy.init index bf71dcbd9f..b01e1bedb8 100644 --- a/net/tinyproxy/files/tinyproxy.init +++ b/net/tinyproxy/files/tinyproxy.init @@ -132,6 +132,7 @@ start_proxy() { proxy_list "$1" Allow proxy_string "$1" ViaProxyName + proxy_flag "$1" DisableViaHeader Yes No proxy_string "$1" Filter proxy_flag "$1" FilterURLs