aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-06-28 18:45:36 +1000
committeronefang2019-06-28 18:45:36 +1000
commit99b7949d4a84ac07ba8a6def7bbadced452e8fbd (patch)
treed2e1d6ce50c9aedc5810d97a610f5f295c5f3680
parentCheck redirections on individual files. (diff)
downloadapt-panopticon-99b7949d4a84ac07ba8a6def7bbadced452e8fbd.zip
apt-panopticon-99b7949d4a84ac07ba8a6def7bbadced452e8fbd.tar.gz
apt-panopticon-99b7949d4a84ac07ba8a6def7bbadced452e8fbd.tar.bz2
apt-panopticon-99b7949d4a84ac07ba8a6def7bbadced452e8fbd.tar.xz
Remove some excess uses of defaultURL from the calls to url.parse().
Diffstat (limited to '')
-rwxr-xr-xmirror-checker.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua
index d370497..cb28d12 100755
--- a/mirror-checker.lua
+++ b/mirror-checker.lua
@@ -436,7 +436,7 @@ if 0 < #arg then
436 W("slash at end of path! " .. arg[1]) 436 W("slash at end of path! " .. arg[1])
437 arg[1] = arg[1]:sub(1, -2) 437 arg[1] = arg[1]:sub(1, -2)
438 end 438 end
439 local pu = url.parse("http://" .. arg[1], defaultURL) 439 local pu = url.parse("http://" .. arg[1])
440 if nil ~= arg[2] then 440 if nil ~= arg[2] then
441 logFile, e = io.open("results/mirror-checker-lua_" .. pu.host .. "_" .. arg[2] .. ".log", "a+") 441 logFile, e = io.open("results/mirror-checker-lua_" .. pu.host .. "_" .. arg[2] .. ".log", "a+")
442 else 442 else
@@ -479,7 +479,7 @@ else
479 W("slash at end of BaseURL in mirror_list.txt! " .. m.BaseURL) 479 W("slash at end of BaseURL in mirror_list.txt! " .. m.BaseURL)
480 m.BaseURL = m.BaseURL:sub(1, -2) 480 m.BaseURL = m.BaseURL:sub(1, -2)
481 end 481 end
482 local pu = url.parse("http://" .. m.BaseURL, defaultURL) 482 local pu = url.parse("http://" .. m.BaseURL)
483 checkRedirects(m.BaseURL) 483 checkRedirects(m.BaseURL)
484-- forkIP(m.BaseURL) 484-- forkIP(m.BaseURL)
485 checkExes("mirror-checker.lua " .. sendArgs) 485 checkExes("mirror-checker.lua " .. sendArgs)