diff --git a/macOS/scripts/postinstall b/macOS/scripts/postinstall
index e7a2077f7136097d8dc771fa8cde5e56e3e8e31a..f0ff9f4f56e8bf1e35245e446877fb8c599bb742 100755
--- a/macOS/scripts/postinstall
+++ b/macOS/scripts/postinstall
@@ -29,7 +29,7 @@ exec 2>&1
 rm -f "$2"/dummy
 
 # Test for Internet connection
-[[ -z $(curl -s -m 4 www.google.com) ]] && \
+[[ -z $(curl -s -m 4 https://github.com) ]] && \
     { \
       osascript -e 'display alert "Dynare Installation Error" message "No internet connection found" as critical'; \
       echo "No internet connection found"; \