diff options
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 515e14b..793a80f 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -1051,16 +1051,20 @@ if 0 < #arg then | |||
1051 | if nil == path then path = '' end | 1051 | if nil == path then path = '' end |
1052 | if APT.origin then | 1052 | if APT.origin then |
1053 | local ips = APT.results["IPs"] | 1053 | local ips = APT.results["IPs"] |
1054 | APT.allpairs(ips, | 1054 | if nil ~= ips then |
1055 | function(k, v) | 1055 | APT.allpairs(ips, |
1056 | if v == "A" then | 1056 | function(k, v) |
1057 | if APT.testing("IPv4") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -4 ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end | 1057 | if v == "A" then |
1058 | elseif v == "AAAA" then | 1058 | if APT.testing("IPv4") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -4 ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end |
1059 | if APT.testing("IPv6") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -6 ' .. APT.IPv46 .. ' ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end | 1059 | elseif v == "AAAA" then |
1060 | if APT.testing("IPv6") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -6 ' .. APT.IPv46 .. ' ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end | ||
1061 | end | ||
1062 | D('logging to ' .. APT.logName(pu.host, k, file)[2]) | ||
1060 | end | 1063 | end |
1061 | D('logging to ' .. APT.logName(pu.host, k, file)[2]) | 1064 | ) |
1062 | end | 1065 | else |
1063 | ) | 1066 | E("no IPs for " .. pu.host) |
1067 | end | ||
1064 | end | 1068 | end |
1065 | 1069 | ||
1066 | if not APT.redir then | 1070 | if not APT.redir then |