ddns-scripts: update to 2.6.1-1 with several fixes

- new function expand_ipv6()
- expand IPv6 before compare https://dev.openwrt.org/ticket/21725
- Fix split_FQDN() to return host.subdomain correctly  #2334
- modified check for musl library used by nslookup #2341 #2346 thanks to Arjen de Korte

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
Christian Schoenebeck
2016-02-06 15:48:39 +01:00
parent 72aa1e370d
commit 5bd03b4e9a
3 changed files with 75 additions and 4 deletions

View File

@@ -272,6 +272,12 @@ while : ; do
get_local_ip LOCAL_IP # read local IP
# on IPv6 we use expanded version to be shure when comparing
[ $use_ipv6 -eq 1 ] && {
expand_ipv6 "$LOCAL_IP" LOCAL_IP
expand_ipv6 "$REGISTERED_IP" REGISTERED_IP
}
# prepare update
# never updated or forced immediate then NEXT_TIME = 0
[ $FORCE_SECONDS -eq 0 -o $LAST_TIME -eq 0 ] \