diff options
| author | onefang | 2019-11-05 18:43:59 +1000 |
|---|---|---|
| committer | onefang | 2019-11-05 18:43:59 +1000 |
| commit | 257ba3b969cb0ed03ccb7011d0990e5234e3a176 (patch) | |
| tree | 029ece0c1f63c70b41953bc9585f739c61e8c304 | |
| parent | Less dumb DNS report. (diff) | |
| download | apt-panopticon-257ba3b969cb0ed03ccb7011d0990e5234e3a176.zip apt-panopticon-257ba3b969cb0ed03ccb7011d0990e5234e3a176.tar.gz apt-panopticon-257ba3b969cb0ed03ccb7011d0990e5234e3a176.tar.bz2 apt-panopticon-257ba3b969cb0ed03ccb7011d0990e5234e3a176.tar.xz | |
Make DNS report prettier.
| -rwxr-xr-x | apt-panopticon-report-DNS.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apt-panopticon-report-DNS.lua b/apt-panopticon-report-DNS.lua index 178659b..c571c3d 100755 --- a/apt-panopticon-report-DNS.lua +++ b/apt-panopticon-report-DNS.lua | |||
| @@ -135,16 +135,16 @@ for k, v in pairs(mirrors) do | |||
| 135 | mirrors[k].BaseURL = nil | 135 | mirrors[k].BaseURL = nil |
| 136 | mirrors[k].Country = nil | 136 | mirrors[k].Country = nil |
| 137 | mirrors[k].Bandwidth = nil | 137 | mirrors[k].Bandwidth = nil |
| 138 | m["\n" .. k .. " DNS entries"] = mirrors[k].IPs | 138 | m["\n" .. k .. " DNS entries -"] = mirrors[k].IPs |
| 139 | end | 139 | end |
| 140 | 140 | ||
| 141 | 141 | ||
| 142 | local file, e = io.open("results/Report-DNS.txt", "w+") | 142 | local file, e = io.open("results/Report-DNS.txt", "w+") |
| 143 | if nil == file then C("opening mirrors file - " .. e) else | 143 | if nil == file then C("opening mirrors file - " .. e) else |
| 144 | file:write("This DNS report lists each mirror, and the DNS entries for that mirror. \n" .. | 144 | file:write("This DNS report lists each mirror, and the DNS entries for that \nmirror. " .. |
| 145 | "If a mirror has a CNAME, that CNAME is listed along with that CNAMEs DNS entries.\n" .. | 145 | "If a mirror has a CNAME, that CNAME is listed along with that \nCNAMEs DNS entries. " .. |
| 146 | "deb.devuan.org is the DNS round robin, which points to the mirrors that are part of the DNS-RR.\n" .. | 146 | "deb.devuan.org is the DNS round robin, which points \nto the mirrors that are part of the DNS-RR. " .. |
| 147 | "pkgmaster.devuan.org is the master mirror, all the others sync to it.\n") | 147 | "pkgmaster.devuan.org is the \nmaster mirror, all the others sync to it. ") |
| 148 | file:write(dumpTable(m, "", "")) | 148 | file:write(dumpTable(m, "", "")) |
| 149 | file:close() | 149 | file:close() |
| 150 | end | 150 | end |
