|
|
@ -1051,16 +1051,20 @@ if 0 < #arg then |
|
|
|
if nil == path then path = '' end |
|
|
|
if APT.origin then |
|
|
|
local ips = APT.results["IPs"] |
|
|
|
APT.allpairs(ips, |
|
|
|
function(k, v) |
|
|
|
if v == "A" then |
|
|
|
if APT.testing("IPv4") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -4 ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end |
|
|
|
elseif v == "AAAA" then |
|
|
|
if APT.testing("IPv6") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -6 ' .. APT.IPv46 .. ' ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end |
|
|
|
if nil ~= ips then |
|
|
|
APT.allpairs(ips, |
|
|
|
function(k, v) |
|
|
|
if v == "A" then |
|
|
|
if APT.testing("IPv4") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -4 ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end |
|
|
|
elseif v == "AAAA" then |
|
|
|
if APT.testing("IPv6") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -6 ' .. APT.IPv46 .. ' ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end |
|
|
|
end |
|
|
|
D('logging to ' .. APT.logName(pu.host, k, file)[2]) |
|
|
|
end |
|
|
|
D('logging to ' .. APT.logName(pu.host, k, file)[2]) |
|
|
|
end |
|
|
|
) |
|
|
|
) |
|
|
|
else |
|
|
|
E("no IPs for " .. pu.host) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
if not APT.redir then |
|
|
|