From 4f08879321ac0d22ae1ba932cb7d39cc2c82c0a8 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 15 May 2017 10:17:31 +0000 Subject: [PATCH] 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'. --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index cfdf0b9d..29f080e0 100755 --- a/weave +++ b/weave @@ -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