ddns-scripts: add hsts-file parameter to wget call
authorJan Pavlinec <redacted>
Mon, 25 Mar 2019 12:30:23 +0000 (13:30 +0100)
committerJan Pavlinec <redacted>
Mon, 25 Mar 2019 12:34:28 +0000 (13:34 +0100)
Note: this should prevent wget to writing to /root/.wget-hsts
 which can lead to flash memory degradation.

Signed-off-by: Jan Pavlinec <redacted>
net/ddns-scripts/Makefile
net/ddns-scripts/files/dynamic_dns_functions.sh

index fa947aaa1bf684bfed9b3a96dd09584ceffcf278..bc3784dc0ac34def25234de70009a79f50765a2a 100755 (executable)
@@ -12,7 +12,7 @@ PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.7.8
 # Release == build
 # increase on changes of services files or tld_names.dat
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_LICENSE:=GPL-2.0
 PKG_MAINTAINER:=
index 2143d8453876e87f02ceeb91d0d527d323d04917..f409d16c6704220da76696a3f21957f79815dfd5 100755 (executable)
@@ -698,7 +698,7 @@ do_transfer() {
 
        # 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 -nv -t 1 -O $DATFILE -o $ERRFILE"     # non_verbose no_retry outfile errfile
+               __PROG="$WGET_SSL --hsts-file=/tmp/.wget-hsts -nv -t 1 -O $DATFILE -o $ERRFILE" # non_verbose no_retry outfile errfile
                # force network/ip to use for communication
                if [ -n "$bind_network" ]; then
                        local __BINDIP
git clone https://git.99rst.org/PROJECT