ddns-scripts: use ip_source as bind_network default
authorJoel Johnson <redacted>
Fri, 21 Aug 2020 19:51:18 +0000 (13:51 -0600)
committerJoel Johnson <redacted>
Wed, 21 Oct 2020 14:43:18 +0000 (08:43 -0600)
Fixes: #13182 on https://github.com/openwrt/packages
Signed-off-by: Joel Johnson <redacted>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh

index 912e6d8609415ec7ff6a81d328ed1d73fc87d266..e8a5c9eeec6af2b7eb7c9688bb87b7921513afc6 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.8.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_LICENSE:=GPL-2.0
 
index a5698d7f29da38eb72f4065a5bd7c7590ccb9f91..eeb212ec1a2f1240b1f9fa7dceebad4c1cc9c0f1 100644 (file)
@@ -707,6 +707,9 @@ do_transfer() {
 
        [ $# -ne 1 ] && write_log 12 "Error in 'do_transfer()' - wrong number of parameters"
 
+       # Use ip_network as default for bind_network if not separately specified
+       [ -z "$bind_network" ] && [ "$ip_source" = "network" ] && [ "$ip_network" ] && bind_network="$ip_network"
+
        # lets prefer GNU Wget because it does all for us - IPv4/IPv6/HTTPS/PROXY/force IP version
        if [ -n "$WGET_SSL" -a $USE_CURL -eq 0 ]; then                  # except global option use_curl is set to "1"
                __PROG="$WGET_SSL --hsts-file=/tmp/.wget-hsts -nv -t 1 -O $DATFILE -o $ERRFILE" # non_verbose no_retry outfile errfile
git clone https://git.99rst.org/PROJECT