aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-10-01 17:42:44 +1000
committeronefang2019-10-01 17:42:44 +1000
commit029916f82c8c82c6a24b7bd292771bfb35d9e881 (patch)
treea04adf9cede49cb20bffe9e038e24229bdb96e08
parentIf only the protocol changed, just log and return. (diff)
downloadapt-panopticon-029916f82c8c82c6a24b7bd292771bfb35d9e881.zip
apt-panopticon-029916f82c8c82c6a24b7bd292771bfb35d9e881.tar.gz
apt-panopticon-029916f82c8c82c6a24b7bd292771bfb35d9e881.tar.bz2
apt-panopticon-029916f82c8c82c6a24b7bd292771bfb35d9e881.tar.xz
Check original host name as well as IP in redirected locations.
Diffstat (limited to '')
-rwxr-xr-xmirror-checker.lua2
1 files changed, 1 insertions, 1 deletions
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)
255 elseif nil == pu.host then 255 elseif nil == pu.host then
256 I(" relative redirect. " .. check .. " " .. host .. " -> " .. URL .. " -> " .. l) 256 I(" relative redirect. " .. check .. " " .. host .. " -> " .. URL .. " -> " .. l)
257 checkHEAD(host, PU.scheme .. "://" .. PU.host .. l, r + 1) 257 checkHEAD(host, PU.scheme .. "://" .. PU.host .. l, r + 1)
258 elseif PU.host == pu.host then 258 elseif (PU.host == pu.host) or (host == pu.host) then
259 checkHEAD(pu.host, l, r + 1) 259 checkHEAD(pu.host, l, r + 1)
260 else 260 else
261 --[[ The hard part here is that we end up throwing ALL of the test files at the redirected location. 261 --[[ The hard part here is that we end up throwing ALL of the test files at the redirected location.