diff options
| author | onefang | 2019-11-24 06:37:31 +1000 |
|---|---|---|
| committer | onefang | 2019-11-24 06:37:31 +1000 |
| commit | 429ff902862de3fcce22d31ea555e1c69df1976e (patch) | |
| tree | fb980a47c81757f7ba17b2767515fb31fa091833 /apt-panopticon.lua | |
| parent | Space sentences properly on the web. (diff) | |
| download | apt-panopticon-429ff902862de3fcce22d31ea555e1c69df1976e.zip apt-panopticon-429ff902862de3fcce22d31ea555e1c69df1976e.tar.gz apt-panopticon-429ff902862de3fcce22d31ea555e1c69df1976e.tar.bz2 apt-panopticon-429ff902862de3fcce22d31ea555e1c69df1976e.tar.xz | |
Implement DNS-RR test fully.
Diffstat (limited to 'apt-panopticon.lua')
| -rwxr-xr-x | apt-panopticon.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 2058b4e..9f4d073 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
| @@ -41,7 +41,7 @@ options = | |||
| 41 | "http", | 41 | "http", |
| 42 | "https", | 42 | "https", |
| 43 | -- "rsync", | 43 | -- "rsync", |
| 44 | -- "DNS-RR", | 44 | "DNSRR", |
| 45 | "Protocol", | 45 | "Protocol", |
| 46 | -- "URL-Sanity", | 46 | -- "URL-Sanity", |
| 47 | -- "Integrity", | 47 | -- "Integrity", |
| @@ -652,9 +652,11 @@ local getMirrors = function () | |||
| 652 | mirrors[host] = m | 652 | mirrors[host] = m |
| 653 | end | 653 | end |
| 654 | end | 654 | end |
| 655 | mirrors[options.roundRobin.value] = { ["Protocols"] = { ["http"] = true; ["https"] = true; }; ["FQDN"] = 'deb.devuan.org'; ["Active"] = 'yes'; ["BaseURL"] = 'deb.devuan.org'; } | 655 | if testing("DNSRR") then |
| 656 | gatherIPs(options.roundRobin.value) | 656 | mirrors[options.roundRobin.value] = { ["Protocols"] = { ["http"] = true; ["https"] = true; }; ["FQDN"] = 'deb.devuan.org'; ["Active"] = 'yes'; ["BaseURL"] = 'deb.devuan.org'; } |
| 657 | mirrors[options.roundRobin.value].IPs = IP[options.roundRobin.value] | 657 | gatherIPs(options.roundRobin.value) |
| 658 | mirrors[options.roundRobin.value].IPs = IP[options.roundRobin.value] | ||
| 659 | end | ||
| 658 | local file, e = io.open("results/mirrors.lua", "w+") | 660 | local file, e = io.open("results/mirrors.lua", "w+") |
| 659 | if nil == file then C("opening mirrors file - " .. e) else | 661 | if nil == file then C("opening mirrors file - " .. e) else |
| 660 | file:write(dumpTable(mirrors, "", "mirrors") .. "\nreturn mirrors\n") | 662 | file:write(dumpTable(mirrors, "", "mirrors") .. "\nreturn mirrors\n") |
