From 0743960d104f45de248b382a701eedf14702a3ea Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 24 Dec 2019 15:05:49 +1000 Subject: Minor tweaks to the redirection log messages. --- apt-panopticon.lua | 6 ++++-- 1 file 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) end if location == URL then - E(" redirect loop! " .. check .. " " .. host .. " -> " .. URL, PU.scheme, "", host) + E(" redirect loop! " .. check .. " " .. host .. " -> \n" .. URL, PU.scheme, "", host) elseif nil == pu.host then - I(" relative redirect. " .. check .. " " .. host .. " -> " .. URL .. " -> " .. location) + I(" relative redirect. " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location) checkHEAD(host, PU.scheme .. "://" .. PU.host .. location, r + 1, retry, sanity) elseif (PU.host == pu.host) or (host == pu.host) then + I(" redirect to same host. " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location) checkHEAD(pu.host, location, r + 1, retry, sanity) else + I(" redirect to different host. " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location) --[[ The hard part here is that we end up throwing ALL of the test files at the redirected location. Not good for deb.debian.org, which we should only be throwing .debs at. What we do is loop through the DNS entries, and only test the specific protocol & file being tested here. -- cgit v1.1