From 2789e6b3f3d6d01fe368aedcf698fad5a9fd4312 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Mon, 29 Feb 2016 08:26:17 +0100 Subject: [PATCH] ddns-scripts: uclient-fetch supports -4/-6 Signed-off-by: Stijn Tintel --- net/ddns-scripts/Makefile | 2 +- net/ddns-scripts/files/dynamic_dns_functions.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index b3d45fa80..33544bdfc 100755 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -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 diff --git a/net/ddns-scripts/files/dynamic_dns_functions.sh b/net/ddns-scripts/files/dynamic_dns_functions.sh index ca605dfbe..438ba21d3 100755 --- a/net/ddns-scripts/files/dynamic_dns_functions.sh +++ b/net/ddns-scripts/files/dynamic_dns_functions.sh @@ -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"