Skip to content

Commit

Permalink
Multiple proxy addresses need to be all on one line
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
bboreham committed May 15, 2017
1 parent bf3ecaf commit 4f08879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weave
Expand Up @@ -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
Expand Down

0 comments on commit 4f08879

Please sign in to comment.