mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 01:21:21 +00:00
ddns-scripts: use ip_source as bind_network default
Fixes: #13182 on https://github.com/openwrt/packages Signed-off-by: Joel Johnson <mrjoel@lixil.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user