From 430a0e60bcbb99586058ce5303e3e1c346ecdb84 Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 29 Sep 2019 11:15:43 +1000 Subject: CheckRedirects() -> checkRedirects() --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c4363ed..bc5fdb1 100644 --- a/README.md +++ b/README.md @@ -190,19 +190,19 @@ Active mirrors keyed by the FDQN, include the listed Protocols as a sub table. Write this table to results/mirrors.lua so that the forked tests can read it. -Remove the mirror site from the mirrors table, then CheckRedirects() it +Remove the mirror site from the mirrors table, then checkRedirects() it first. -CheckRedirects() deb.devuan.org, the DNS RR. +checkRedirects() deb.devuan.org, the DNS RR. -Loop through the mirrors table, and CheckRedirects() each one. +Loop through the mirrors table, and checkRedirects() each one. Wait for all forked tests to finish. Delete results/*.check. -The CheckRedirects() function does this - +The checkRedirects() function does this - If there is no second argument, then the host is set to the first argument, otherwise the host is the second argument. @@ -222,7 +222,7 @@ ionice -c3 ./mirror-checker.lua example.com/path x.x.x.x & ionice -c3 ./mirror-checker.lua example.com/path [x:x:x:x:x:x] & -For each CNAME, it CheckRedirects() the host, but with the CNAME as a +For each CNAME, it checkRedirects() the host, but with the CNAME as a second argument. SRV reconds don't do anything yet, coz I have yet to see one from my test @@ -241,9 +241,9 @@ directory, downloads the reference files using wget. While it should actually perform the Integrity and Updated tests now, those haven't been written yet. Note that currently this downloads 4GB per mirror. -Calls CheckRedirects() with the host as first and second arguments, and +Calls checkRedirects() with the host as first and second arguments, and includes the IP this time. The inclusion of the IP causes -CheckRedirects() to call checkPaths(). +checkRedirects() to call checkPaths(). checkPaths() will call checkURL() for each of the reference files. @@ -253,7 +253,7 @@ checkURL() uses LuaSocket (or LuaSec for HTTPS) to send a HEAD request to the IP, with a Host header set to the original host name. Redirects will not be followed by that request. If the request returns a redirect, then checkURL() is called recursively. If the redirect is to some host we are -not already checking, we call CheckRedirects() on it, with an IP of -"redir". This causes CheckRedirects() to bypass the IP gathering +not already checking, we call checkRedirects() on it, with an IP of +"redir". This causes checkRedirects() to bypass the IP gathering process, and call checkPaths() with the new host. -- cgit v1.1