Open unregist opened 1 year ago
Hi @jow- , I am having similar issue, following change did the tricky:
[ "$type" = "http" ] && [ -n "$via" ] && \
echo "upstream http $via$target"
It seems like the upstream section could use some refactoring for current tinyproxy version.
"reject" branch is also broken. Should be
[ "$type" = "reject" ] && [ -n "$target" ] && \
echo "upstream none$target"
Example is here: https://github.com/tinyproxy/tinyproxy/blob/1.10.0/etc/tinyproxy.conf.in#L158
"reject" branch is also broken. Should be
[ "$type" = "reject" ] && [ -n "$target" ] && \ echo "upstream none$target"
Example is here: https://github.com/tinyproxy/tinyproxy/blob/1.10.0/etc/tinyproxy.conf.in#L158
Thanks, I've added that.
Maintainer: @jow- Environment: Clean Install, 22.03.2 built with imagebuilder. SamKnows WB8.
make image PROFILE=samknows_whitebox-v8 PACKAGES="luci luci-ssl luci-app-uhttpd luci-app-openvpn openvpn-openssl tcpdump luci-app-wireguard wireguard-tools luci-app-mwan3 mwan3 luci-app-tinyproxy tinyproxy"
Description: tinyproxy - Configuring upstream proxy causes config file syntax error
When you configure an upsteam proxy in uci/luci the tinyproxy.conf file generated has a syntax error.
UCI Config:
Generated config file:
At this point tinyproxy refuses to start:
Correcting the last line from
upstream 172.16.1.1:3128
toupstream http 172.16.1.1:3128
fixes the problem. Unfortunately the .conf file gets overrwitten in by the /etc/init.d/tinyproxy script so this is useable for testing only.Fix (I think)
/etc/init.d/tinyproxy
line 27 to be updated fromecho "upstream $via$target"
toecho "upstream http $via$target"