From f93ff748edf1b92e6b35f980b1f4eb5fe4cc39dd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Mar 2017 17:43:08 +0100 Subject: remove leading , from addresses --- update-ddns.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-ddns.in b/update-ddns.in index 205535a..66f3dba 100644 --- a/update-ddns.in +++ b/update-ddns.in @@ -142,9 +142,9 @@ do then if [[ "${updateUrl}" = *'?'* ]] then - updateIps='&'"${updateIps}" + updateIps='&'"${updateIps#,}" else - updateIps='?'"${updateIps}" + updateIps='?'"${updateIps#,}" fi curl ${curlForceIpVer} -sS "${updateUrl}${updateIps}" 2> /dev/null fi -- cgit v1.2.3-70-g09d2