summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-03-01 17:43:08 +0100
committerErich Eckner <git@eckner.net>2017-03-01 17:43:08 +0100
commitf93ff748edf1b92e6b35f980b1f4eb5fe4cc39dd (patch)
treea4d925beaf92350d39bc031b07050702f3bdb1ba
parent63dff6ddfd6e37bf5f0e8b81fea0ffb5bb10579b (diff)
downloadupdate-ddns-f93ff748edf1b92e6b35f980b1f4eb5fe4cc39dd.tar.xz
remove leading , from addresses
-rw-r--r--update-ddns.in4
1 files 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