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:
Bryan Boreham committed 2017-05-15 10:17:35 +00:00
1 parent bf3ecaf48a
commit 4f08879321
1 file changed
+1 -1
+1 -1
View File
@@ -1154,7 +1154,7 @@ proxy_args() {
proxy_addrs() {
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
return 1
fi