Skip to content

Commit

Permalink
ddns-scripts: use ip_source as bind_network default
Browse files Browse the repository at this point in the history
Fixes: #13182 on https://github.com/openwrt/packages

Signed-off-by: Joel Johnson <mrjoel@lixil.net>
  • Loading branch information
mrjoel committed Oct 21, 2020
1 parent 4315b0e commit 5b36293
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/ddns-scripts/Makefile
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh
Expand Up @@ -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
Expand Down

0 comments on commit 5b36293

Please sign in to comment.