From 99b7949d4a84ac07ba8a6def7bbadced452e8fbd Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 28 Jun 2019 18:45:36 +1000 Subject: Remove some excess uses of defaultURL from the calls to url.parse(). --- mirror-checker.lua | 4 ++-- 1 file 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 W("slash at end of path! " .. arg[1]) arg[1] = arg[1]:sub(1, -2) end - local pu = url.parse("http://" .. arg[1], defaultURL) + local pu = url.parse("http://" .. arg[1]) if nil ~= arg[2] then logFile, e = io.open("results/mirror-checker-lua_" .. pu.host .. "_" .. arg[2] .. ".log", "a+") else @@ -479,7 +479,7 @@ else W("slash at end of BaseURL in mirror_list.txt! " .. m.BaseURL) m.BaseURL = m.BaseURL:sub(1, -2) end - local pu = url.parse("http://" .. m.BaseURL, defaultURL) + local pu = url.parse("http://" .. m.BaseURL) checkRedirects(m.BaseURL) -- forkIP(m.BaseURL) checkExes("mirror-checker.lua " .. sendArgs) -- cgit v1.1