diff options
author | onefang | 2019-06-28 18:45:36 +1000 |
---|---|---|
committer | onefang | 2019-06-28 18:45:36 +1000 |
commit | 99b7949d4a84ac07ba8a6def7bbadced452e8fbd (patch) | |
tree | d2e1d6ce50c9aedc5810d97a610f5f295c5f3680 | |
parent | Check redirections on individual files. (diff) | |
download | apt-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().
-rwxr-xr-x | mirror-checker.lua | 4 |
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) |