aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-24 15:05:49 +1000
committeronefang2019-12-24 15:05:49 +1000
commit0743960d104f45de248b382a701eedf14702a3ea (patch)
tree5c27326cac258b599d38f8422cfa82e89acff547
parentBetter handling of STATUS files. (diff)
downloadapt-panopticon-0743960d104f45de248b382a701eedf14702a3ea.zip
apt-panopticon-0743960d104f45de248b382a701eedf14702a3ea.tar.gz
apt-panopticon-0743960d104f45de248b382a701eedf14702a3ea.tar.bz2
apt-panopticon-0743960d104f45de248b382a701eedf14702a3ea.tar.xz
Minor tweaks to the redirection log messages.
-rwxr-xr-xapt-panopticon.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index a5d94e2..6668da2 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -351,13 +351,15 @@ checkHEAD = function (host, URL, r, retry, sanity)
351 end 351 end
352 352
353 if location == URL then 353 if location == URL then
354 E(" redirect loop! " .. check .. " " .. host .. " -> " .. URL, PU.scheme, "", host) 354 E(" redirect loop! " .. check .. " " .. host .. " -> \n" .. URL, PU.scheme, "", host)
355 elseif nil == pu.host then 355 elseif nil == pu.host then
356 I(" relative redirect. " .. check .. " " .. host .. " -> " .. URL .. " -> " .. location) 356 I(" relative redirect. " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location)
357 checkHEAD(host, PU.scheme .. "://" .. PU.host .. location, r + 1, retry, sanity) 357 checkHEAD(host, PU.scheme .. "://" .. PU.host .. location, r + 1, retry, sanity)
358 elseif (PU.host == pu.host) or (host == pu.host) then 358 elseif (PU.host == pu.host) or (host == pu.host) then
359 I(" redirect to same host. " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location)
359 checkHEAD(pu.host, location, r + 1, retry, sanity) 360 checkHEAD(pu.host, location, r + 1, retry, sanity)
360 else 361 else
362 I(" redirect to different host. " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location)
361 --[[ The hard part here is that we end up throwing ALL of the test files at the redirected location. 363 --[[ The hard part here is that we end up throwing ALL of the test files at the redirected location.
362 Not good for deb.debian.org, which we should only be throwing .debs at. 364 Not good for deb.debian.org, which we should only be throwing .debs at.
363 What we do is loop through the DNS entries, and only test the specific protocol & file being tested here. 365 What we do is loop through the DNS entries, and only test the specific protocol & file being tested here.