From 60e54d7112ba2a068c8909ca22c5f71734871cab Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 8 Oct 2019 08:37:06 +0000 Subject: [PATCH] Use HTTPS for checkip{6,4}.dns.lightningwirelabs.com Since we are deploying a HSTS policy for lightningwirelabs.com now, and we generally only use HTTPS for everything, this patch changes this for the IP address discovery process, too. Signed-off-by: Michael Tremer Signed-off-by: Stefan Schantl --- src/ddns/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ddns/system.py b/src/ddns/system.py index 67ea553..b7a51f6 100644 --- a/src/ddns/system.py +++ b/src/ddns/system.py @@ -112,9 +112,9 @@ class DDNSSystem(object): def guess_external_ip_address(self, family, **kwargs): if family == "ipv6": - url = "http://checkip6.dns.lightningwirelabs.com" + url = "https://checkip6.dns.lightningwirelabs.com" elif family == "ipv4": - url = "http://checkip4.dns.lightningwirelabs.com" + url = "https://checkip4.dns.lightningwirelabs.com" else: raise ValueError("unknown address family") -- 2.39.5