projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb989ac
)
[packages] tinyproxy: set default stathost to 127.0.0.1
author
Jo-Philipp Wich
<
[email protected]
>
Sat, 20 Nov 2010 21:26:19 +0000
(21:26 +0000)
committer
Jo-Philipp Wich
<
[email protected]
>
Sat, 20 Nov 2010 21:26:19 +0000
(21:26 +0000)
SVN-Revision: 24050
net/tinyproxy/files/tinyproxy.init
patch
|
blob
|
history
diff --git
a/net/tinyproxy/files/tinyproxy.init
b/net/tinyproxy/files/tinyproxy.init
index f81dcd344da5c698f149b350ea33cae502f6bb22..cff10c0833c448993de1eed211c0e14573728b34 100644
(file)
--- a/
net/tinyproxy/files/tinyproxy.init
+++ b/
net/tinyproxy/files/tinyproxy.init
@@
-39,6
+39,7
@@
start_proxy() {
proxy_string "$1" ErrorFile_503 "ErrorFile 503" >> $CFGFILE
proxy_string "$1" DefaultErrorFile >> $CFGFILE
+ proxy_string "$1" StatHost StatHost 127.0.0.1 >> $CFGFILE
proxy_string "$1" StatFile >> $CFGFILE
proxy_string "$1" LogFile >> $CFGFILE
@@
-102,8
+103,10
@@
proxy_string() {
local SECTION=$1
local OPTION=$2
local ALIAS=$3
+ local DEFAULT=$4
config_get _value "$SECTION" "$OPTION"
+ [ -z "$_value" ] && _value="$DEFAULT"
[ -n "$_value" ] && echo "${ALIAS:-${OPTION}} "'"'"$_value"'"'
}