--- linkchecker.module.old	2009-08-01 20:41:06.000000000 +0100
+++ linkchecker.module	2009-08-30 17:55:29.000000000 +0100
@@ -958,7 +958,8 @@
       // Absolute local URLs need to start with [/].
       if (preg_match('!^/!', $ret[$i])) {
         // Add to Array and change HTML encoded links into plain text links.
-        $links[] = decode_entities('http://'. $_SERVER['HTTP_HOST'] . $ret[$i]);
+        $protocol = $_SERVER["HTTPS"] == 'on' ? 'https' : 'http';
+        $links[] = decode_entities($protocol .'://'. $_SERVER['HTTP_HOST'] . $ret[$i]);
       }
       // Anchors and URL parameters like "#foo" and "?foo=bar".
       elseif (!empty($content_path) && preg_match('!^[?#]!', $ret[$i])) {
