aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-11-24 06:38:32 +1000
committeronefang2019-11-24 06:38:32 +1000
commit648ec8ee445e7419bf035a95973314ca3606ebab (patch)
tree9cac26a2946a9585c1e3ab600af27d51a0c1bef9
parentImplement DNS-RR test fully. (diff)
downloadapt-panopticon-648ec8ee445e7419bf035a95973314ca3606ebab.zip
apt-panopticon-648ec8ee445e7419bf035a95973314ca3606ebab.tar.gz
apt-panopticon-648ec8ee445e7419bf035a95973314ca3606ebab.tar.bz2
apt-panopticon-648ec8ee445e7419bf035a95973314ca3606ebab.tar.xz
No "-" in the middle of test names, it confuses the option parsing.
-rwxr-xr-xapt-panopticon.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 9f4d073..cd1bca0 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -43,7 +43,7 @@ options =
43-- "rsync", 43-- "rsync",
44 "DNSRR", 44 "DNSRR",
45 "Protocol", 45 "Protocol",
46-- "URL-Sanity", 46-- "URLSanity",
47-- "Integrity", 47-- "Integrity",
48-- "Updated", 48-- "Updated",
49 }, 49 },
@@ -427,7 +427,7 @@ checkHEAD = function (host, URL, r, retry)
427 --max-redirs n - set maximum redirects, default is 50, -1 = unlimited. 427 --max-redirs n - set maximum redirects, default is 50, -1 = unlimited.
428 --retry n - maximum retries, default is 0, no retries. 428 --retry n - maximum retries, default is 0, no retries.
429 -o file - write to file instead of stdout. 429 -o file - write to file instead of stdout.
430 --path-as-is - https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html might be useful for URL_sanity. 430 --path-as-is - https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html might be useful for URLSanity.
431 -s silent - don't output progress or error messages. 431 -s silent - don't output progress or error messages.
432 --connect-timeout n - timeout in seconds. 432 --connect-timeout n - timeout in seconds.
433 Should return with error code 28 on a timeout? 433 Should return with error code 28 on a timeout?
@@ -767,10 +767,10 @@ if 0 < #arg then
767 for k, v in pairs{"ftp", "http", "https", "rsync"} do 767 for k, v in pairs{"ftp", "http", "https", "rsync"} do
768 if testing(v) then 768 if testing(v) then
769 local tests = {errors = 0; warnings = 0} 769 local tests = {errors = 0; warnings = 0}
770 if testing("Integrity") then tests.Integrity = {errors = 0; warnings = 0} end 770 if testing("Integrity") then tests.Integrity = {errors = 0; warnings = 0} end
771 if testing("Protocol") then tests.Protocol = {errors = 0; warnings = 0} end 771 if testing("Protocol") then tests.Protocol = {errors = 0; warnings = 0} end
772 if testing("Updated") then tests.Updated = {errors = 0; warnings = 0} end 772 if testing("Updated") then tests.Updated = {errors = 0; warnings = 0} end
773 if testing("URL-Sanity") then tests.URL_Sanity = {errors = 0; warnings = 0} end 773 if testing("URLSanity") then tests.URLSanity = {errors = 0; warnings = 0} end
774 results[v] = tests 774 results[v] = tests
775 end 775 end
776 end 776 end