ddns-scripts: uclient-fetch supports -4/-6 2438/head
authorStijn Tintel <stijn@linux-ipv6.be>
Mon, 29 Feb 2016 07:26:17 +0000 (08:26 +0100)
committerStijn Tintel <stijn@linux-ipv6.be>
Mon, 29 Feb 2016 10:38:23 +0000 (11:38 +0100)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
net/ddns-scripts/Makefile
net/ddns-scripts/files/dynamic_dns_functions.sh

index b3d45fa806fcf476b5fda977fae7008b046c7972..33544bdfc36c5766c4df24e6576666d63361590a 100755 (executable)
@@ -12,7 +12,7 @@ PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.6.2
 # Release == build
 # increase on changes of services files or tld_names.dat
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_LICENSE:=GPL-2.0
 PKG_MAINTAINER:=Christian Schoenebeck <christian.schoenebeck@gmail.com>
index ca605dfbe1d0823daac3fb23d6344f1198253e63..438ba21d3f437606f8f9d51c661e97e834cba07a 100755 (executable)
@@ -721,9 +721,10 @@ do_transfer() {
                # force network/ip not supported
                [ -n "$__BINDIP" ] && \
                        write_log 14 "uclient-fetch: FORCE binding to specific address not supported"
-               # force ip version not supported
-               [ $force_ipversion -eq 1 ] && \
-                       write_log 14 "uclient-fetch: Force connecting to IPv4 or IPv6 addresses not supported"
+               # force ip version to use
+               if [ $force_ipversion -eq 1 ]; then
+                       [ $use_ipv6 -eq 0 ] && __PROG="$__PROG -4" || __PROG="$__PROG -6"       # force IPv4/IPv6
+               fi
                # https possibly not supported
                [ $use_https -eq 1 -a ! -f /lib/libustream-ssl.so ] && \
                        write_log 14 "uclient-fetch: no HTTPS support! Additional install one of ustream-ssl packages"