From 029916f82c8c82c6a24b7bd292771bfb35d9e881 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 1 Oct 2019 17:42:44 +1000 Subject: Check original host name as well as IP in redirected locations. --- mirror-checker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirror-checker.lua b/mirror-checker.lua index b49c725..71c9c34 100755 --- a/mirror-checker.lua +++ b/mirror-checker.lua @@ -255,7 +255,7 @@ checkHEAD = function (host, URL, r, retry) elseif nil == pu.host then I(" relative redirect. " .. check .. " " .. host .. " -> " .. URL .. " -> " .. l) checkHEAD(host, PU.scheme .. "://" .. PU.host .. l, r + 1) - elseif PU.host == pu.host then + elseif (PU.host == pu.host) or (host == pu.host) then checkHEAD(pu.host, l, r + 1) else --[[ The hard part here is that we end up throwing ALL of the test files at the redirected location. -- cgit v1.1