public inbox for ddns@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] Use HTTPS for checkip{6,4}.dns.lightningwirelabs.com
@ 2019-10-08  8:37 Michael Tremer
  0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2019-10-08  8:37 UTC (permalink / raw)
  To: ddns

[-- Attachment #1: Type: text/plain, Size: 903 bytes --]

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 <michael.tremer(a)ipfire.org>
---
 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.20.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-08  8:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08  8:37 [PATCH] Use HTTPS for checkip{6,4}.dns.lightningwirelabs.com Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox