aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/README.md
diff options
context:
space:
mode:
authoronefang2019-09-29 12:29:48 +1000
committeronefang2019-09-29 12:29:48 +1000
commitfbd53b3ef35ced9589f77aae34313016412de195 (patch)
tree45017161691898f69a10c7647fcfb0b87ca5f339 /README.md
parentcheckPaths -> checkFiles (diff)
downloadapt-panopticon-fbd53b3ef35ced9589f77aae34313016412de195.zip
apt-panopticon-fbd53b3ef35ced9589f77aae34313016412de195.tar.gz
apt-panopticon-fbd53b3ef35ced9589f77aae34313016412de195.tar.bz2
apt-panopticon-fbd53b3ef35ced9589f77aae34313016412de195.tar.xz
checkRedirects -> checkHost
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index fe62f04..347049b 100644
--- a/README.md
+++ b/README.md
@@ -190,19 +190,19 @@ Active mirrors keyed by the FDQN, include the listed Protocols as a sub
190table. Write this table to results/mirrors.lua so that the forked tests 190table. Write this table to results/mirrors.lua so that the forked tests
191can read it. 191can read it.
192 192
193Remove the mirror site from the mirrors table, then checkRedirects() it 193Remove the mirror site from the mirrors table, then checkHost() it
194first. 194first.
195 195
196checkRedirects() deb.devuan.org, the DNS RR. 196checkHost() deb.devuan.org, the DNS RR.
197 197
198Loop through the mirrors table, and checkRedirects() each one. 198Loop through the mirrors table, and checkHost() each one.
199 199
200Wait for all forked tests to finish. 200Wait for all forked tests to finish.
201 201
202Delete results/*.check. 202Delete results/*.check.
203 203
204 204
205The checkRedirects() function does this - 205The checkHost() function does this -
206 206
207If there is no second argument, then the host is set to the first 207If there is no second argument, then the host is set to the first
208argument, otherwise the host is the second argument. 208argument, otherwise the host is the second argument.
@@ -222,7 +222,7 @@ ionice -c3 ./mirror-checker.lua example.com/path x.x.x.x &
222 222
223ionice -c3 ./mirror-checker.lua example.com/path [x:x:x:x:x:x] & 223ionice -c3 ./mirror-checker.lua example.com/path [x:x:x:x:x:x] &
224 224
225For each CNAME, it checkRedirects() the host, but with the CNAME as a 225For each CNAME, it checkHost() the host, but with the CNAME as a
226second argument. 226second argument.
227 227
228SRV reconds don't do anything yet, coz I have yet to see one from my test 228SRV 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
241actually perform the Integrity and Updated tests now, those haven't been 241actually perform the Integrity and Updated tests now, those haven't been
242written yet. Note that currently this downloads 4GB per mirror. 242written yet. Note that currently this downloads 4GB per mirror.
243 243
244Calls checkRedirects() with the host as first and second arguments, and 244Calls checkHost() with the host as first and second arguments, and
245includes the IP this time. The inclusion of the IP causes 245includes the IP this time. The inclusion of the IP causes
246checkRedirects() to call checkFiles(). 246checkHost() to call checkFiles().
247 247
248 248
249checkFiles() will call checkHEAD() for each of the reference files. 249checkFiles() will call checkHEAD() for each of the reference files.
@@ -253,7 +253,7 @@ checkHEAD() uses LuaSocket (or LuaSec for HTTPS) to send a HEAD request to
253the IP, with a Host header set to the original host name. Redirects will 253the IP, with a Host header set to the original host name. Redirects will
254not be followed by that request. If the request returns a redirect, then 254not be followed by that request. If the request returns a redirect, then
255checkHEAD() is called recursively. If the redirect is to some host we are 255checkHEAD() is called recursively. If the redirect is to some host we are
256not already checking, we call checkRedirects() on it, with an IP of 256not already checking, we call checkHost() on it, with an IP of
257"redir". This causes checkRedirects() to bypass the test that would 257"redir". This causes checkHost() to bypass the test that would
258otherwise call checkFiles(), instead gathering the IPs and fork as usual. 258otherwise call checkFiles(), instead gathering the IPs and fork as usual.
259 259