diff options
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") |