aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-11-05 18:43:59 +1000
committeronefang2019-11-05 18:43:59 +1000
commit257ba3b969cb0ed03ccb7011d0990e5234e3a176 (patch)
tree029ece0c1f63c70b41953bc9585f739c61e8c304
parentLess dumb DNS report. (diff)
downloadapt-panopticon-257ba3b969cb0ed03ccb7011d0990e5234e3a176.zip
apt-panopticon-257ba3b969cb0ed03ccb7011d0990e5234e3a176.tar.gz
apt-panopticon-257ba3b969cb0ed03ccb7011d0990e5234e3a176.tar.bz2
apt-panopticon-257ba3b969cb0ed03ccb7011d0990e5234e3a176.tar.xz
Make DNS report prettier.
-rwxr-xr-xapt-panopticon-report-DNS.lua10
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
139end 139end
140 140
141 141
142local file, e = io.open("results/Report-DNS.txt", "w+") 142local file, e = io.open("results/Report-DNS.txt", "w+")
143if nil == file then C("opening mirrors file - " .. e) else 143if 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()
150end 150end