From e2b3cc2f9d4ff239b3db1244400859a81f19a263 Mon Sep 17 00:00:00 2001
From: Dave Gson <3080765+davegson@users.noreply.github.com>
Date: Fri, 14 Aug 2020 10:03:11 +0000
Subject: [PATCH] Update used url to test for Internet connection

google.com, though a giant url, is not made for connectivity checks and will fail in edge cases (handshake failed in my case). Use https://detectportal.firefox.com instead, which is a domain explicitly made for these checks.
---
 repos/jekyll/copy/all/usr/jekyll/bin/connected | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/repos/jekyll/copy/all/usr/jekyll/bin/connected b/repos/jekyll/copy/all/usr/jekyll/bin/connected
index 470f519..9964a7d 100755
--- a/repos/jekyll/copy/all/usr/jekyll/bin/connected
+++ b/repos/jekyll/copy/all/usr/jekyll/bin/connected
@@ -14,7 +14,7 @@ disconnected=$JEKYLL_VAR_DIR/disconnected
 # whether we are connected to the internet.
 #
 
-url=https://www.google.com
+url=https://detectportal.firefox.com
 if wget -q --spider "$url" -O /dev/null 2>/dev/null; then
   su-exec jekyll touch "$connected"
   exit 0
-- 
GitLab