Multiple proxy addresses need to be all on one line
For some reason the previous version was de-newlined by the shell and the new version isn't. Since I can't figure out the exact reason the shell is now behaving differently (man page says it depends on the quoting that is in effect) I brute-force it with 'tr'.
This commit is contained in:
1 parent
bf3ecaf48a
commit
4f08879321
1 file changed
+1
-1
@@ -1154,7 +1154,7 @@ proxy_args() {
|
|||||||
|
|
||||||
proxy_addrs() {
|
proxy_addrs() {
|
||||||
if addr="$(call_weave GET /proxyaddrs)" ; then
|
if addr="$(call_weave GET /proxyaddrs)" ; then
|
||||||
echo "$addr" | sed "s/0.0.0.0/$PROXY_HOST/g"
|
echo "$addr" | sed "s/0.0.0.0/$PROXY_HOST/g" | tr '\n' ' '
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user