diff options
| author | onefang | 2019-11-05 17:27:03 +1000 |
|---|---|---|
| committer | onefang | 2019-11-05 17:27:03 +1000 |
| commit | 9ed69b2682d4be5696f607e8a04dd5ab317e8f31 (patch) | |
| tree | 8421bf1500aa1dedca8a71bcbaca23d07c94b10a | |
| parent | Rename project to apt-panopticon. (diff) | |
| download | apt-panopticon-9ed69b2682d4be5696f607e8a04dd5ab317e8f31.zip apt-panopticon-9ed69b2682d4be5696f607e8a04dd5ab317e8f31.tar.gz apt-panopticon-9ed69b2682d4be5696f607e8a04dd5ab317e8f31.tar.bz2 apt-panopticon-9ed69b2682d4be5696f607e8a04dd5ab317e8f31.tar.xz | |
Whitespace clean up.
| -rwxr-xr-x | apt-panopticon.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index c68ec48..2a9631b 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
| @@ -367,7 +367,7 @@ checkHost = function (orig, host, path, ip, file) | |||
| 367 | else | 367 | else |
| 368 | if orig == host then | 368 | if orig == host then |
| 369 | D("checkHost " .. orig .. "" .. file) | 369 | D("checkHost " .. orig .. "" .. file) |
| 370 | if testing("IPv4") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " -o " .. orig .. path .. " " .. file .." &") end | 370 | if testing("IPv4") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " -o " .. orig .. path .. " " .. file .." &") end |
| 371 | else D("checkHost " .. orig .. " -> " .. host) end | 371 | else D("checkHost " .. orig .. " -> " .. host) end |
| 372 | local h = mirrors[ph.host] | 372 | local h = mirrors[ph.host] |
| 373 | if nil == h then return end | 373 | if nil == h then return end |
| @@ -375,14 +375,14 @@ checkHost = function (orig, host, path, ip, file) | |||
| 375 | if "table" == type(v) then | 375 | if "table" == type(v) then |
| 376 | for k1, v1 in pairs(v) do | 376 | for k1, v1 in pairs(v) do |
| 377 | if v1 == "A" then | 377 | if v1 == "A" then |
| 378 | if testing("IPv4") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " " .. orig .. path .. " " .. k1 .. " " .. file .." &") end | 378 | if testing("IPv4") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " " .. orig .. path .. " " .. k1 .. " " .. file .." &") end |
| 379 | elseif v1 == "AAAA" then | 379 | elseif v1 == "AAAA" then |
| 380 | if testing("IPv6") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " " .. orig .. path .. " [" .. k1 .. "] " .. file .. " &") end | 380 | if testing("IPv6") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " " .. orig .. path .. " [" .. k1 .. "] " .. file .. " &") end |
| 381 | end | 381 | end |
| 382 | end | 382 | end |
| 383 | else | 383 | else |
| 384 | if v == "A" then | 384 | if v == "A" then |
| 385 | if testing("IPv4") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " " .. orig .. path .. " " .. k .. " " .. file .." &") end | 385 | if testing("IPv4") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " " .. orig .. path .. " " .. k .. " " .. file .." &") end |
| 386 | elseif v == "AAAA" then | 386 | elseif v == "AAAA" then |
| 387 | if testing("IPv6") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " " .. orig .. path .. " [" .. k .. "] " .. file .. " &") end | 387 | if testing("IPv6") then execute("ionice -c3 ./apt-panopticon.lua " .. sendArgs .. " " .. orig .. path .. " [" .. k .. "] " .. file .. " &") end |
| 388 | end | 388 | end |
