aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xapt-panopticon.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 7604a98..3834ced 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -217,7 +217,7 @@ checkHEAD = function (host, URL, r, retry, sanity)
217 local check = "HEAD testing file" 217 local check = "HEAD testing file"
218 local PU = url.parse(URL, defaultURL) 218 local PU = url.parse(URL, defaultURL)
219 local pu = url.parse(PU.scheme .. "://" .. host, defaultURL) 219 local pu = url.parse(PU.scheme .. "://" .. host, defaultURL)
220 local fname = host .. "_" .. PU.host .. "_" .. PU.path:gsub("/", "_") .. ".txt" 220 local fname = host .. "_" .. PU.host .. "_" .. PU.path:gsub("/", "_") .. ".log.txt"
221 local hdr = "" 221 local hdr = ""
222 local IP = "" 222 local IP = ""
223 if pu.host ~= PU.host then 223 if pu.host ~= PU.host then
@@ -330,10 +330,10 @@ checkHEAD = function (host, URL, r, retry, sanity)
330 end 330 end
331 if '???' == code then 331 if '???' == code then
332 W(spcd .. spcd .. 'Could not find response code. ' .. APT.lnk(URL), PU.scheme, sanity, host) 332 W(spcd .. spcd .. 'Could not find response code. ' .. APT.lnk(URL), PU.scheme, sanity, host)
333 else
334 os.execute('rm -f results/STATUS_' .. fname .. ' 2>/dev/null')
335 end 333 end
336 end 334 end
335 os.execute('cat results/STATUS_' .. fname .. ' >> results/curl_HEAD_' .. fname .. '; rm -f results/STATUS_' .. fname .. ' 2>/dev/null')
336
337 if ("4" == tostring(code):sub(1, 1)) or ("5" == tostring(code):sub(1, 1)) then 337 if ("4" == tostring(code):sub(1, 1)) or ("5" == tostring(code):sub(1, 1)) then
338 E(spcd .. spcd .. code .. " " .. cstr .. ". " .. check .. " " .. APT.lnk(URL), PU.scheme, sanity, host) 338 E(spcd .. spcd .. code .. " " .. cstr .. ". " .. check .. " " .. APT.lnk(URL), PU.scheme, sanity, host)
339 else 339 else