mirror of https://github.com/openwrt/packages.git
tinyproxy: fix upstream config generation
Signed-off-by: Daniel Kucera <daniel.kucera@gmail.com>pull/24463/head
parent
65fc6ccb06
commit
de8e13efa5
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=tinyproxy
|
PKG_NAME:=tinyproxy
|
||||||
PKG_VERSION:=1.11.1
|
PKG_VERSION:=1.11.1
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://github.com/tinyproxy/tinyproxy/releases/download/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://github.com/tinyproxy/tinyproxy/releases/download/$(PKG_VERSION)
|
||||||
|
|
|
@ -24,10 +24,10 @@ write_upstream() {
|
||||||
[ -n "$target" ] && target=' "'"$target"'"'
|
[ -n "$target" ] && target=' "'"$target"'"'
|
||||||
|
|
||||||
[ "$type" = "proxy" ] && [ -n "$via" ] && \
|
[ "$type" = "proxy" ] && [ -n "$via" ] && \
|
||||||
echo "upstream $via$target"
|
echo "upstream http $via$target"
|
||||||
|
|
||||||
[ "$type" = "reject" ] && [ -n "$target" ] && \
|
[ "$type" = "reject" ] && [ -n "$target" ] && \
|
||||||
echo "no upstream$target"
|
echo "upstream none$target"
|
||||||
}
|
}
|
||||||
|
|
||||||
proxy_atom() {
|
proxy_atom() {
|
||||||
|
|
Loading…
Reference in New Issue