From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] ddns: Import latest upstream patches for ddns-013 Date: Fri, 07 Feb 2020 11:34:43 +0000 Message-ID: In-Reply-To: <20200207113246.19109-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2953233831043851179==" List-Id: --===============2953233831043851179== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Michael Tremer Are there any other providers that are still using HTTP? If so we should eith= er upgrade them to HTTPS or remove them because they got stuck in the early 2= 000s. -Michael > On 7 Feb 2020, at 11:32, Stefan Schantl wrote: >=20 > Signed-off-by: Stefan Schantl > --- > lfs/ddns | 3 +++ > src/patches/ddns-013-dyfi-use-https.patch | 22 ++++++++++++++++++++++ > 2 files changed, 25 insertions(+) > create mode 100644 src/patches/ddns-013-dyfi-use-https.patch >=20 > diff --git a/lfs/ddns b/lfs/ddns > index 89ab02e96..0e045ddc4 100644 > --- 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) >=20 > + # Apply upstream patches. > + cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-dyfi-use-h= ttps.patch > + > cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh > cd $(DIR_APP) && ./configure \ > --prefix=3D/usr \ > diff --git a/src/patches/ddns-013-dyfi-use-https.patch b/src/patches/ddns-0= 13-dyfi-use-https.patch > new file mode 100644 > index 000000000..f131c5b24 > --- /dev/null > +++ b/src/patches/ddns-013-dyfi-use-https.patch > @@ -0,0 +1,22 @@ > +commit ce6e977f0ace7fe468411270ad07f1824a3aeaec > +Author: Mauno Pirnes > +Date: Fri Feb 7 12:25:00 2020 +0100 > + > + dy.fi: Use HTTPS to perform updates. > + =20 > + Signed-off-by: Mauno Pirnes > + Signed-off-by: Stefan Schantl > + > +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, DDNSProvid= er): > + # https://www.dy.fi/page/clients?lang=3Den > + # https://www.dy.fi/page/specification?lang=3Den > +=20 > +- url =3D "http://www.dy.fi/nic/update" > ++ url =3D "https://www.dy.fi/nic/update" > +=20 > + # Please only send automatic updates when your IP address changes, > + # or once per 5 to 6 days to refresh the address mapping (they will > --=20 > 2.25.0 >=20 --===============2953233831043851179==--