diff options
Diffstat (limited to 'update-ddns.in')
-rw-r--r-- | update-ddns.in | 6 |
1 files changed, 6 insertions, 0 deletions
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' |