From 15b4b489ad156a51dd07ec61087c75faba324500 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 12 Mar 2017 13:41:31 +0100 Subject: possibly ignore non-available ip-Versions --- update-ddns.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/update-ddns.in b/update-ddns.in index afbc11a..2162770 100644 --- a/update-ddns.in +++ b/update-ddns.in @@ -30,6 +30,12 @@ do continue fi + if [[ "${ipVer}" == *"?" ]] + then + ipVer="${ipVer%?}" + [ -z "$(${ipCmd} -o -${ipVer} addr show scope global)" ] && continue + fi + if [ "${ipVer}" == '4' ] then dnsVers[${i}]='A' -- cgit v1.2.3-54-g00ecf