diff --git a/login.lp b/login.lp index 5e7d72de..d1040b10 100644 --- a/login.lp +++ b/login.lp @@ -9,6 +9,14 @@ mg.include('scripts/pi-hole/lua/header.lp','r') +-- Build HTTPS upgrade link if HTTP is used +https_link = "" +if not is_secure then + https_link = "https://pi.hole" .. mg.request_info.request_uri + if mg.request_info.query_string then + https_link = https_link .. "?" .. mg.request_info.query_string + end +end ?>
Consider upgrading to HTTPS (end-to-end encryption)
+