tinyproxy: fix upstream config generation
Signed-off-by: Daniel Kucera <daniel.kucera@gmail.com>
This commit is contained in:
parent
e35b92835e
commit
7e3a512042
|
@ -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