diff options
author | dvs1 | 2024-11-15 15:40:27 +1000 |
---|---|---|
committer | dvs1 | 2024-11-15 15:40:27 +1000 |
commit | e154119d456251a85955c514e2eb1ac9f4e96054 (patch) | |
tree | 102f75458434d50d0adc8f9b6c9a75bd0d26cd52 /apt-panopticon.lua | |
parent | Sometimes even I screw up, check for one I did that might happen again. (diff) | |
download | apt-panopticon-e154119d456251a85955c514e2eb1ac9f4e96054.zip apt-panopticon-e154119d456251a85955c514e2eb1ac9f4e96054.tar.gz apt-panopticon-e154119d456251a85955c514e2eb1ac9f4e96054.tar.bz2 apt-panopticon-e154119d456251a85955c514e2eb1ac9f4e96054.tar.xz |
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-x | apt-panopticon.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 8e758c6..30bff59 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -277,7 +277,11 @@ checkHEAD = function (host, URL, r, retry, sanity) | |||
277 | if "http" == PU.scheme then | 277 | if "http" == PU.scheme then |
278 | hdr = '-H "Host: ' .. host .. '"' | 278 | hdr = '-H "Host: ' .. host .. '"' |
279 | end | 279 | end |
280 | IP = '--connect-to "' .. pu.host .. '::' .. PU.host .. ':"' | 280 | if '-6' == APT.IPv46 then |
281 | IP = '--connect-to "' .. pu.host .. '::[' .. PU.host .. ']:"' | ||
282 | else | ||
283 | IP = '--connect-to "' .. pu.host .. '::' .. PU.host .. ':"' | ||
284 | end | ||
281 | fname = host .. "_" .. pu.host .. '_' .. PU.host .. "_" .. PU.path:gsub("/", "_") .. ".txt" | 285 | fname = host .. "_" .. pu.host .. '_' .. PU.host .. "_" .. PU.path:gsub("/", "_") .. ".txt" |
282 | end | 286 | end |
283 | os.execute('rm -f results/HEADERS_' .. fname .. ' 2>/dev/null; rm -f results/STATUS_' .. fname .. ' 2>/dev/null; touch results/STATUS_' .. fname) | 287 | os.execute('rm -f results/HEADERS_' .. fname .. ' 2>/dev/null; rm -f results/STATUS_' .. fname .. ' 2>/dev/null; touch results/STATUS_' .. fname) |