]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ddns: Import latest upstream patches for ddns-013
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 7 Feb 2020 11:32:46 +0000 (12:32 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 16 Feb 2020 15:53:21 +0000 (15:53 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/ddns
src/patches/ddns-013-dyfi-use-https.patch [new file with mode: 0644]

index 89ab02e9614b58c5c9b10687170a541fcd2667b6..0e045ddc4c0d8ef9e72475900933cef6871b6dae 100644 (file)
--- a/lfs/ddns
+++ b/lfs/ddns
@@ -71,6 +71,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
 
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
 
+       # Apply upstream patches.
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-dyfi-use-https.patch
+
        cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh
        cd $(DIR_APP) && ./configure \
                --prefix=/usr \
        cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh
        cd $(DIR_APP) && ./configure \
                --prefix=/usr \
diff --git a/src/patches/ddns-013-dyfi-use-https.patch b/src/patches/ddns-013-dyfi-use-https.patch
new file mode 100644 (file)
index 0000000..f131c5b
--- /dev/null
@@ -0,0 +1,22 @@
+commit ce6e977f0ace7fe468411270ad07f1824a3aeaec
+Author: Mauno Pirnes <mauno.pirnes@hotmail.com>
+Date:   Fri Feb 7 12:25:00 2020 +0100
+
+    dy.fi: Use HTTPS to perform updates.
+    
+    Signed-off-by: Mauno Pirnes <mauno.pirnes@hotmail.com>
+    Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
+
+diff --git a/src/ddns/providers.py b/src/ddns/providers.py
+index dcdc5da..f1fed22 100644
+--- a/src/ddns/providers.py
++++ b/src/ddns/providers.py
+@@ -826,7 +826,7 @@ class DDNSProviderDyFi(DDNSProtocolDynDNS2, DDNSProvider):
+       # https://www.dy.fi/page/clients?lang=en
+       # https://www.dy.fi/page/specification?lang=en
+-      url = "http://www.dy.fi/nic/update"
++      url = "https://www.dy.fi/nic/update"
+       # Please only send automatic updates when your IP address changes,
+       # or once per 5 to 6 days to refresh the address mapping (they will