481ccca36ef13bba5b314fcb6828db17b236c218
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

1) #!/usr/bin/perl -w
2) use warnings;
3) use strict;
4) use LWP::Simple;
5) use LWP;
6) use Date::Parse;
Jacob Appelbaum Removed dupe mirror entry,...

Jacob Appelbaum authored 15 years ago

7) use Date::Format;
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

8) 
Jacob Appelbaum Add credit and some idea of...

Jacob Appelbaum authored 15 years ago

9) #
10) # A quick hack by Jacob Appelbaum <jacob@appelbaum.net>
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

11) # LWP suggestions by Leigh Honeywell
Jacob Appelbaum Add credit and some idea of...

Jacob Appelbaum authored 15 years ago

12) # This is Free Software (GPLv3)
13) # http://www.gnu.org/licenses/gpl-3.0.txt
14) #
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

15) # CHANGELOG
16) # 20091003 Code changes to elimiate the need for a trailing slash in addresses for script runtime
17) # 20091004 Code changes to increase out of date tolerance to 48 hours
18) # 20091028 Code changes to increase timout to 30 seconds (attempting to # resolve "unknown" status')
19) # 20091028 Code changes to change user agent of script
20) # 20100807 Remove dead mirrors.
Jacob Appelbaum Add credit and some idea of...

Jacob Appelbaum authored 15 years ago

21) 
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

22) print "Creating LWP agent ($LWP::VERSION)...\n";
23) my $lua = LWP::UserAgent->new(
24)     keep_alive => 1,
Jon@svn.torproject.org alter timout values (15 -> 30)

Jon@svn.torproject.org authored 14 years ago

25)     timeout => 30,
Jon@svn.torproject.org revert r21050

Jon@svn.torproject.org authored 14 years ago

26)     agent => "Tor MirrorCheck Agent"
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

27) );
28) 
29) sub sanitize {
30)     my $taintedData = shift;
31)     my $cleanedData;
32)     my $whitelist = '-a-zA-Z0-9: +';
33) 
34)     # clean the data, return cleaned data
35)     $taintedData =~ s/[^$whitelist]//go;
36)     $cleanedData = $taintedData;
37) 
38)     return $cleanedData;
39) }
40) 
41) sub FetchDate {
42)     my $url = shift; # Base url for mirror
Andrew Lewman update the trace filename s...

Andrew Lewman authored 13 years ago

43)     my $trace = "/project/trace/www-master.torproject.org"; # Location of recent update info
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

44)     $url = "$url$trace";
45) 
46)     print "Fetching possible date from: $url\n";
47) 
48)     my $request = new HTTP::Request GET => "$url";
49)     my $result = $lua->request($request);
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

50)     my $code = $result->code();
51)     print "Result code $code\n";
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

52) 
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

53)     if ($result->is_success && $code eq "200"){
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

54)        my $taint = $result->content;
55)        my $content = sanitize($taint);
56)        if ($content) {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

57) 
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

58)             my $date = str2time($content);
59) 
60)             if ($date) {
61)                 print "We've fetched a date $date.\n";
62)                 return $date;
63)             } else {
64)                 print "We've haven't fetched a date.\n";
65)                 return "Unknown";
66)             }
67) 
68)         } else {
69)             print "Unable to fetch date, empty content returned.\n";
70)             return "Unknown";
71)         }
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

72) 
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

73)     } else {
74)        print "Our request failed, we had no result.\n";
75)        return "Unknown";
76)     }
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

77) 
78)     return "Unknown";
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

79) }
80) 
81) # This is the list of all known Tor mirrors
82) # Add new mirrors to the bottom!
Jon@svn.torproject.org Reorder mirrors, cypher's r...

Jon@svn.torproject.org authored 14 years ago

83) my %m = (
84) 
Andrew Lewman add CoralCDN into the mix.

Andrew Lewman authored 13 years ago

85)         
86)         mirror000 => {
87)             adminContact => "coralcdn.org",
88)             orgName => "CoralCDN",
89)             isoCC => "INT",
90)             subRegion => "",
91)             region => "INT",
92)             ipv4 => "True",
93)             ipv6 => "False",
94)             loadBalanced => "Yes",
95)             httpWebsiteMirror => "http://www.torproject.org.nyud.net/",
96)             httpsWebsiteMirror => "",
97)             rsyncWebsiteMirror => "",
98)             ftpWebsiteMirror => "",
99)             httpDistMirror => "http://www.torproject.org.nyud.net/dist/",
100)             httpsDistMirror => "",
101)             rsyncDistMirror => "",
102)             hiddenServiceMirror => "",
103)             updateDate => "Unknown",
104) 
105)         },
106) 
Jon@svn.torproject.org Reorder mirrors.

Jon@svn.torproject.org authored 14 years ago

107)         mirror001 => {
108)             adminContact => "BarkerJr AT barkerjr DOT net",
109)             orgName => "BarkerJr",
110)             isoCC => "FR",
111)             subRegion => "",
112)             region => "FR",
113)             ipv4 => "True",
114)             ipv6 => "False",
115)             loadBalanced => "No",
Jon@svn.torproject.org Fix the breakages I created...

Jon@svn.torproject.org authored 14 years ago

116)             httpWebsiteMirror => "http://www.oignon.net/",
Andrew Lewman per BarkerJr, update https:...

Andrew Lewman authored 13 years ago

117)             httpsWebsiteMirror => "https://www.oignon.net/",
Jon@svn.torproject.org Reorder mirrors.

Jon@svn.torproject.org authored 14 years ago

118)             rsyncWebsiteMirror => "",
119)             ftpWebsiteMirror => "",
Jon@svn.torproject.org Change the megahal mirror....

Jon@svn.torproject.org authored 14 years ago

120)             httpDistMirror => "http://www.oignon.net/dist/",
Andrew Lewman per BarkerJr, update https:...

Andrew Lewman authored 13 years ago

121)             httpsDistMirror => "https://www.oignon.net/dist/",
Jon@svn.torproject.org Reorder mirrors.

Jon@svn.torproject.org authored 14 years ago

122)             rsyncDistMirror => "",
123)             hiddenServiceMirror => "",
124)             updateDate => "Unknown",
125)         },
126) 
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

127)        mirror002 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

128)             adminContact => "",
Mfr add contact address on mirr...

Mfr authored 15 years ago

129)             orgName => "Boinc",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

130)             isoCC => "CH",
131)             subRegion => "",
132)             region => "Europe",
133)             ipv4 => "True",
134)             ipv6 => "False",
135)             loadBalanced => "Unknown",
136)             httpWebsiteMirror => "http://tor.boinc.ch/",
137)             ftpWebsiteMirror => "",
138)             rsyncWebsiteMirror => "",
139)             httpDistMirror => "http://tor.boinc.ch/dist/",
140)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

141)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

142)         },
143) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

144)        mirror003 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

145)             adminContact => "citizen428 AT gmail DOT com",
Andrew Lewman update bbs mirror

Andrew Lewman authored 13 years ago

146)             orgName => "[[:bbs:]]",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

147)             isoCC => "DE",
148)             subRegion => "",
149)             region => "Europe",
150)             ipv4 => "True",
151)             ipv6 => "False",
152)             loadBalanced => "Unknown",
153)             httpWebsiteMirror => "http://tor.blingblingsquad.net/",
Andrew Lewman add in the self-signed ssl...

Andrew Lewman authored 13 years ago

154)             httpsWebsiteMirror => "https://tor.blingblingsquad.net/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

155)             ftpWebsiteMirror => "",
156)             rsyncWebsiteMirror => "",
Andrew Lewman update bbs mirror

Andrew Lewman authored 13 years ago

157)             httpDistMirror => "http://tor.blingblingsquad.net/dist",
Andrew Lewman add in the self-signed ssl...

Andrew Lewman authored 13 years ago

158)             httpsDistMirror => "https://tor.blingblingsquad.net/dist",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

159)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

160)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

161)         },
162) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

163)        mirror005 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

164)             adminContact => "contact AT algorithmus DOT com",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

165)             orgName => "Spline",
166)             isoCC => "DE",
167)             subRegion => "FU",
168)             region => "Europe",
169)             ipv4 => "True",
170)             ipv6 => "False",
171)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 15 years ago

172)             httpWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

173)             ftpWebsiteMirror => "",
174)             rsyncWebsiteMirror => "",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 15 years ago

175)             httpDistMirror => "http://rem.spline.de/tor/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

176)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

177)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

178)         },
179) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

180) 	    mirror006 => {
Jon@svn.torproject.org Reorder mirrors.

Jon@svn.torproject.org authored 14 years ago

181)             adminContact => "BarkerJr AT barkerjr DOT net",
182)             orgName => "BarkerJr",
183)             isoCC => "US",
184)             subRegion => "",
185)             region => "US",
186)             ipv4 => "True",
187)             ipv6 => "False",
188)             loadBalanced => "No",
Andrew Lewman update mirrors.

Andrew Lewman authored 14 years ago

189)             httpWebsiteMirror => "http://www.torproject.us/",
190)             httpsWebsiteMirror => "https://www.torproject.us/",
Andrew Lewman add barkerjr's rsync mirrors.

Andrew Lewman authored 13 years ago

191)             rsyncWebsiteMirror => "rsync://rsync.torproject.us/tor",
Jon@svn.torproject.org Reorder mirrors.

Jon@svn.torproject.org authored 14 years ago

192)             ftpWebsiteMirror => "",
Andrew Lewman update mirrors.

Andrew Lewman authored 14 years ago

193)             httpDistMirror => "http://www.torproject.us/dist/",
194)             httpsDistMirror => "https://www.torproject.us/dist/",
Andrew Lewman add barkerjr's rsync mirrors.

Andrew Lewman authored 13 years ago

195)             rsyncDistMirror => "rsync://rsync.torproject.us/tor/dist",
Jon@svn.torproject.org Reorder mirrors.

Jon@svn.torproject.org authored 14 years ago

196)             hiddenServiceMirror => "",
197)             updateDate => "Unknown",
198)         },
199) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

200)        mirror007 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

201)             adminContact => "info AT zentrum-der-gesundheit DOT de",
Mfr add contact address on mirr...

Mfr authored 15 years ago

202)             orgName => "Zentrum der Gesundheit",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

203)             isoCC => "DK",
204)             subRegion => "",
205)             region => "Europe",
206)             ipv4 => "True",
207)             ipv6 => "False",
208)             loadBalanced => "Unknown",
Andrew Lewman update one mirror per request

Andrew Lewman authored 14 years ago

209)             httpWebsiteMirror => "http://tor.idnr.ws/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

210)             ftpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

211)             rsyncWebsiteMirror => "",
Andrew Lewman update one mirror per request

Andrew Lewman authored 14 years ago

212)             httpDistMirror => "http://tor.idnr.ws/dist/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

213)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

214)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

215)         },
216) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

217)        mirror008 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

218)             adminContact => "root AT amorphis DOT eu",
Mfr add contact address on mirr...

Mfr authored 15 years ago

219)             orgName => "Amorphis",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

220)             isoCC => "NL",
221)             subRegion => "",
222)             region => "Europe",
223)             ipv4 => "True",
224)             ipv6 => "False",
225)             loadBalanced => "Unknown",
226)             httpWebsiteMirror => "http://tor.amorphis.eu/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

227)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

228)             ftpWebsiteMirror => "",
229)             httpDistMirror => "http://tor.amorphis.eu/dist/",
230)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

231)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

232)         },
233) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

234)        mirror009 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

235)             adminContact => "mirror AT bit DOT nl",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

236)             orgName => "BIT BV",
237)             isoCC => "NL",
238)             subRegion => "",
239)             region => "Europe",
240)             ipv4 => "True",
241)             ipv6 => "False",
242)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 15 years ago

243)             httpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

244)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

245)             ftpWebsiteMirror => "ftp://ftp.bit.nl/mirror/tor/",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 15 years ago

246)             httpDistMirror => "http://ftp.bit.nl/mirror/tor/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

247)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

248)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

249)         },
250) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

251)        mirror010 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

252)             adminContact => "webmaster AT ccc DOT de",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

253)             orgName => "CCC",
254)             isoCC => "NL",
255)             subRegion => "",
256)             region => "Europe",
257)             ipv4 => "True",
258)             ipv6 => "False",
259)             loadBalanced => "Unknown",
260)             httpWebsiteMirror => "http://tor.ccc.de/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

261)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

262)             ftpWebsiteMirror => "",
263)             httpDistMirror => "http://tor.ccc.de/dist/",
264)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

265)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

266)         },
267) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

268)        mirror011 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

269)             adminContact => "root AT kamagurka DOT org",
Mfr add contact address on mirr...

Mfr authored 15 years ago

270)             orgName => "Kamagurka",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

271)             isoCC => "NL",
272)             subRegion => "Haarlem",
273)             region => "Europe",
274)             ipv4 => "True",
275)             ipv6 => "False",
276)             loadBalanced => "Unknown",
277)             httpWebsiteMirror => "http://tor.kamagurka.org/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

278)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

279)             ftpWebsiteMirror => "",
280)             httpDistMirror => "http://tor.kamagurka.org/dist/",
281)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

282)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

283)         },
284) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

285)        mirror012 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

286)             adminContact => "evert AT meulie DOT net",
Mfr add contact address on mirr...

Mfr authored 15 years ago

287)             orgName => "Meulie",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

288)             isoCC => "NO",
289)             subRegion => "",
290)             region => "Europe",
291)             ipv4 => "True",
292)             ipv6 => "False",
293)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 15 years ago

294)             httpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

295)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

296)             ftpWebsiteMirror => "",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 15 years ago

297)             httpDistMirror => "http://tor.meulie.net/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

298)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

299)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

300)         },
301) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

302)        mirror013 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

303) 	    adminContact => "hostmaster AT zombiewerks DOT com",
Mfr fix more typos

Mfr authored 15 years ago

304)             orgName => "TheOnionRouter",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

305)             isoCC => "US",
Andrew Lewman Added mirror in the Ukraine.

Andrew Lewman authored 15 years ago

306)             subRegion => "New Jersey",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

307)             region => "North America",
308)             ipv4 => "True",
309)             ipv6 => "False",
310)             loadBalanced => "Unknown",
Andrew Lewman update a mirror

Andrew Lewman authored 13 years ago

311)             httpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

312)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

313)             ftpWebsiteMirror => "",
Andrew Lewman update a mirror

Andrew Lewman authored 13 years ago

314)             httpDistMirror => "http://theonionrouter.com/dist/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

315)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 15 years ago

316)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

317)         },
318) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

319)         mirror014 => {
Jon@svn.torproject.org replace dots with AT and DOT

Jon@svn.torproject.org authored 14 years ago

320)             adminContact => "tormaster AT xpdm DOT us",
Mfr fix more typos

Mfr authored 15 years ago

321)             orgName => "Xpdm",
Jacob Appelbaum New mirror, update mirror t...

Jacob Appelbaum authored 15 years ago

322)             isoCC => "US",
323)             subRegion => "",
324)             region => "North America",
325)             ipv4 => "True",
326)             ipv6 => "False",
327)             loadBalanced => "Unknown",
328)             httpWebsiteMirror => "http://torproj.xpdm.us/",
Jacob Appelbaum Update table to include htt...

Jacob Appelbaum authored 15 years ago

329)             httpsWebsiteMirror => "https://torproj.xpdm.us/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

330)             rsyncWebsiteMirror => "",
Jacob Appelbaum New mirror, update mirror t...

Jacob Appelbaum authored 15 years ago

331)             ftpWebsiteMirror => "",
Jacob Appelbaum Update table to include htt...

Jacob Appelbaum authored 15 years ago

332)             httpDistMirror => "http://torproj.xpdm.us/dist/",
333)             httpsDistMirror => "https://torproj.xpdm.us/dist/",
Jacob Appelbaum New mirror, update mirror t...

Jacob Appelbaum authored 15 years ago

334)             rsyncDistMirror => "",
335)             hiddenServiceMirror => "http://h3prhz46uktgm4tt.onion/",
336)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

337)         },
Jacob Appelbaum New mirror, update mirror t...

Jacob Appelbaum authored 15 years ago

338) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

339)         mirror016 => {
Jon@svn.torproject.org Apply new naming conventions.

Jon@svn.torproject.org authored 14 years ago

340)             adminContact => "security AT hostoffice DOT hu",
Andrew Lewman Added mirror.tor.hu back to...

Andrew Lewman authored 15 years ago

341)             orgName => "Unknown",
342)             isoCC => "HU",
343)             subRegion => "Hungary",
344)             region => "Europe",
345)             ipv4 => "True",
346)             ipv6 => "False",
347)             loadBalanced => "No",
Jon@svn.torproject.org Change tor.hu (adjustements...

Jon@svn.torproject.org authored 14 years ago

348)             httpWebsiteMirror => "http://tor.hu/",
Andrew Lewman Added mirror.tor.hu back to...

Andrew Lewman authored 15 years ago

349)             httpsWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

350)             rsyncWebsiteMirror => "",
Andrew Lewman Added mirror.tor.hu back to...

Andrew Lewman authored 15 years ago

351)             ftpWebsiteMirror => "",
Jon@svn.torproject.org Change tor.hu (adjustements...

Jon@svn.torproject.org authored 14 years ago

352)             httpDistMirror => "",
Andrew Lewman Added mirror.tor.hu back to...

Andrew Lewman authored 15 years ago

353)             httpsDistMirror => "",
354)             rsyncDistMirror => "",
355)             hiddenServiceMirror => "",
356)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

357)         },
Andrew Lewman Add mirror 41, remove plent...

Andrew Lewman authored 14 years ago

358) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

359)         mirror017 => {
Andrew Lewman Added mirror in the Ukraine.

Andrew Lewman authored 15 years ago

360)             adminContact => "",
Andrew Lewman Add the organization sponso...

Andrew Lewman authored 15 years ago

361)             orgName => "Technica-03",
Roger Dingledine fix a syntax error in our perl

Roger Dingledine authored 15 years ago

362)             isoCC => "UA",
Andrew Lewman Added mirror in the Ukraine.

Andrew Lewman authored 15 years ago

363)             subRegion => "Ukraine",
364)             region => "Eastern Europe",
365)             ipv4 => "True",
366)             ipv6 => "False",
367)             loadBalanced => "No",
368)             httpWebsiteMirror => "http://torua.reactor-xg.kiev.ua/",
369)             httpsWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

370)             rsyncWebsiteMirror => "",
Andrew Lewman Added mirror in the Ukraine.

Andrew Lewman authored 15 years ago

371)             ftpWebsiteMirror => "",
Jon@svn.torproject.org Fix the breakages I created...

Jon@svn.torproject.org authored 14 years ago

372)             httpDistMirror => "http://tordistua.reactor-xg.kiev.ua/",
Andrew Lewman Added mirror in the Ukraine.

Andrew Lewman authored 15 years ago

373)             httpsDistMirror => "",
374)             rsyncDistMirror => "",
375)             hiddenServiceMirror => "",
376)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

377)         },
Andrew Lewman Add mirror 41, remove plent...

Andrew Lewman authored 14 years ago

378) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

379) 	    mirror018 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

380)             adminContact => "",
381)             orgName => "chaos darmstadt",
382)             isoCC => "DE",
383)             subRegion => "Germany",
384)             region => "Europe",
385)             ipv4 => "True",
386)             ipv6 => "False",
387)             loadBalanced => "No",
388)             httpWebsiteMirror => "http://mirrors.chaos-darmstadt.de/tor-mirror/",
389)             httpsWebsiteMirror => "",
390)             rsyncWebsiteMirror => "",
391)             ftpWebsiteMirror => "",
392)             httpDistMirror => "http://mirrors.chaos-darmstadt.de/tor-mirror/dist/",
393)             httpsDistMirror => "",
394)             rsyncDistMirror => "",
395)             hiddenServiceMirror => "",
396)             updateDate => "Unknown",
Andrew Lewman add the newest two mirrors

Andrew Lewman authored 14 years ago

397)         },
Andrew Lewman Add mirror 41, remove plent...

Andrew Lewman authored 14 years ago

398) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

399) 	mirror019 => {
Jon@svn.torproject.org Update AskApache - http://a...

Jon@svn.torproject.org authored 14 years ago

400)             adminContact => "webmaster AT askapache DOT com",
401)             orgName => "AskApache",
Andrew Lewman add the newest two mirrors

Andrew Lewman authored 14 years ago

402)             isoCC => "US",
403)             subRegion => "California",
404)             region => "US",
405)             ipv4 => "True",
406)             ipv6 => "False",
407)             loadBalanced => "No",
408)             httpWebsiteMirror => "http://tor.askapache.com/",
409)             httpsWebsiteMirror => "",
410)             rsyncWebsiteMirror => "",
411)             ftpWebsiteMirror => "",
Jon@svn.torproject.org Update AskApache - http://a...

Jon@svn.torproject.org authored 14 years ago

412)             httpDistMirror => "http://tor.askapache.com/dist/",
Andrew Lewman add the newest two mirrors

Andrew Lewman authored 14 years ago

413)             httpsDistMirror => "",
414)             rsyncDistMirror => "",
415)             hiddenServiceMirror => "",
416)             updateDate => "Unknown",
Andrew Lewman add commas in the right places

Andrew Lewman authored 14 years ago

417)         },
Andrew Lewman Add mirror 41, remove plent...

Andrew Lewman authored 14 years ago

418) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

419) 	mirror020 => {
Jon@svn.torproject.org Delist "digitip" DNS deconf...

Jon@svn.torproject.org authored 14 years ago

420)             adminContact => " mail AT benjamin-meier DOT info ",
421)             orgName => "beme it",
Andrew Lewman update the mirror list than...

Andrew Lewman authored 14 years ago

422)             isoCC => "DE",
Andrew Lewman add a slew of mirrors in china

Andrew Lewman authored 14 years ago

423)             subRegion => "",
Jon@svn.torproject.org Delist "digitip" DNS deconf...

Jon@svn.torproject.org authored 14 years ago

424)             region => "DE",
Andrew Lewman add a slew of mirrors in china

Andrew Lewman authored 14 years ago

425)             ipv4 => "True",
426)             ipv6 => "False",
427)             loadBalanced => "No",
Jon@svn.torproject.org Delist "digitip" DNS deconf...

Jon@svn.torproject.org authored 14 years ago

428)             httpWebsiteMirror => "http://tor.beme-it.de/",
Andrew Lewman add ssl to beme-it mirror.

Andrew Lewman authored 13 years ago

429)             httpsWebsiteMirror => "https://tor.beme-it.de/",
Andrew Lewman update the mirror list than...

Andrew Lewman authored 14 years ago

430)             rsyncWebsiteMirror => "rsync://tor.beme-it.de/tor",
Andrew Lewman add a slew of mirrors in china

Andrew Lewman authored 14 years ago

431)             ftpWebsiteMirror => "",
Jon@svn.torproject.org Delist "digitip" DNS deconf...

Jon@svn.torproject.org authored 14 years ago

432)             httpDistMirror => "http://tor.beme-it.de/dist/",
Andrew Lewman add ssl to beme-it mirror.

Andrew Lewman authored 13 years ago

433)             httpsDistMirror => "https://tor.beme-it.de/dist/",
Andrew Lewman update the mirror list than...

Andrew Lewman authored 14 years ago

434)             rsyncDistMirror => "rsync://tor.beme-it.de/tor/dist",
Andrew Lewman add a slew of mirrors in china

Andrew Lewman authored 14 years ago

435)             hiddenServiceMirror => "",
436)             updateDate => "Unknown",
Andrew Lewman add commas in the right places

Andrew Lewman authored 14 years ago

437)         },
Andrew Lewman Add mirror 41, remove plent...

Andrew Lewman authored 14 years ago

438) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

439)         mirror021 => {
Andrew Lewman add two new mirrors.

Andrew Lewman authored 14 years ago

440)             adminContact => "",
Andrew Lewman create names for the blank...

Andrew Lewman authored 13 years ago

441)             orgName => "India Tor Fans",
Andrew Lewman add two new mirrors.

Andrew Lewman authored 14 years ago

442)             isoCC => "IN",
443)             subRegion => "",
444)             region => "IN",
445)             ipv4 => "True",
446)             ipv6 => "False",
447)             loadBalanced => "No",
Jon@svn.torproject.org resolving inconsistancy

Jon@svn.torproject.org authored 14 years ago

448)             httpWebsiteMirror => "http://www.torproject.org.in/",
Andrew Lewman add two new mirrors.

Andrew Lewman authored 14 years ago

449)             httpsWebsiteMirror => "",
450)             rsyncWebsiteMirror => "",
451)             ftpWebsiteMirror => "",
452)             httpDistMirror => "http://www.torproject.org.in/dist/",
453)             httpsDistMirror => "",
454)             rsyncDistMirror => "",
455)             hiddenServiceMirror => "",
456)             updateDate => "Unknown",
457)         },
458) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

459)         mirror023 => {
Andrew Lewman add a mirror, update the ta...

Andrew Lewman authored 14 years ago

460)             adminContact => "sina at accessnow.org",
461)             orgName => "Access",
462)             isoCC => "IR",
463)             subRegion => "",
464)             region => "IR",
465)             ipv4 => "True",
466)             ipv6 => "False",
467)             loadBalanced => "Yes",
468)             httpWebsiteMirror => "http://irani-tor.ath.cx/",
469)             httpsWebsiteMirror => "",
470)             rsyncWebsiteMirror => "",
471)             ftpWebsiteMirror => "",
472)             httpDistMirror => "http://irani-tor.ath.cx/dist/",
473)             httpsDistMirror => "",
474)             rsyncDistMirror => "",
Andrew Lewman Add the latest mirror in ru...

Andrew Lewman authored 14 years ago

475)             hiddenServiceMirror => "",
476)         },
477) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

478)         mirror024 => {
Andrew Lewman add new mirror in ukraine,...

Andrew Lewman authored 14 years ago

479)             adminContact => "",
Andrew Lewman create names for the blank...

Andrew Lewman authored 13 years ago

480)             orgName => "homosu",
Andrew Lewman change the region for homos...

Andrew Lewman authored 14 years ago

481)             isoCC => "SE",
Andrew Lewman add new mirror in ukraine,...

Andrew Lewman authored 14 years ago

482)             subRegion => "",
Andrew Lewman change the region for homos...

Andrew Lewman authored 14 years ago

483)             region => "SE",
Andrew Lewman add new mirror in ukraine,...

Andrew Lewman authored 14 years ago

484)             ipv4 => "True",
485)             ipv6 => "False",
486)             loadBalanced => "No",
487)             httpWebsiteMirror => "http://tor.homosu.net/",
488)             httpsWebsiteMirror => "",
489)             rsyncWebsiteMirror => "",
490)             ftpWebsiteMirror => "",
491)             httpDistMirror => "http://tor.homosu.net/dist",
492)             httpsDistMirror => "",
493)             rsyncDistMirror => "",
Andrew Lewman Add 1.5 of the estonian mir...

Andrew Lewman authored 13 years ago

494)             hiddenServiceMirror => "",
Andrew Lewman fix the stanza.

Andrew Lewman authored 13 years ago

495)         },
Andrew Lewman Add 1.5 of the estonian mir...

Andrew Lewman authored 13 years ago

496) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

497)         mirror025 => {
Andrew Lewman Add 1.5 of the estonian mir...

Andrew Lewman authored 13 years ago

498)             adminContact => "margus.random at mail.ee",
499)             orgName => "CyberSIDE",
Andrew Lewman fix the EE country code.

Andrew Lewman authored 13 years ago

500)             isoCC => "EE",
Andrew Lewman Add 1.5 of the estonian mir...

Andrew Lewman authored 13 years ago

501)             subRegion => "",
502)             region => "EE",
503)             ipv4 => "True",
504)             ipv6 => "False",
505)             loadBalanced => "No",
506)             httpWebsiteMirror => "http://cyberside.planet.ee/tor/",
507)             httpsWebsiteMirror => "",
508)             rsyncWebsiteMirror => "",
509)             ftpWebsiteMirror => "",
Andrew Lewman update the cyberside mirror

Andrew Lewman authored 13 years ago

510)             httpDistMirror => "http://cyberside.net.ee/tor/",
Andrew Lewman Add 1.5 of the estonian mir...

Andrew Lewman authored 13 years ago

511)             httpsDistMirror => "",
512)             rsyncDistMirror => "",
Andrew Lewman add a mirror, update the ta...

Andrew Lewman authored 14 years ago

513)             hiddenServiceMirror => "",
Andrew Lewman add the tomyn mirror.

Andrew Lewman authored 13 years ago

514)         },
Andrew Lewman add a mirror, update the ta...

Andrew Lewman authored 14 years ago

515) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 13 years ago

516)         mirror026 => {
Andrew Lewman add the tomyn mirror.

Andrew Lewman authored 13 years ago

517)             adminContact => "me_ at tomyn dot com",
518)             orgName => "tomyn",
519)             isoCC => "UK",
520)             subRegion => "",
521)             region => "UK",
522)             ipv4 => "True",
523)             ipv6 => "False",
524)             loadBalanced => "No",
525)             httpWebsiteMirror => "http://tor.tomyn.com",
526)             httpsWebsiteMirror => "https://tor.tomyn.com",
527)             rsyncWebsiteMirror => "",
528)             ftpWebsiteMirror => "ftp://tor.tomyn.com",
529)             httpDistMirror => "http://tor.tomyn.com/dist",
530)             httpsDistMirror => "https://tor.tomyn.com/dist",
531)             rsyncDistMirror => "",
Andrew Lewman add sykotik mirrors, upload...

Andrew Lewman authored 13 years ago

532)             hiddenServiceMirror => "",
533)         },
534) 
535)         mirror027 => {
536)             adminContact => "",
537)             orgName => "mirrors.sykotik.org",
538)             isoCC => "RO",
539)             subRegion => "",
540)             region => "RO",
541)             ipv4 => "True",
542)             ipv6 => "False",
543)             loadBalanced => "No",
544)             httpWebsiteMirror => "",
545)             httpsWebsiteMirror => "",
546)             rsyncWebsiteMirror => "",
547)             ftpWebsiteMirror => "ftp://mirrors.sykotik.org/pub/tor/",
548)             httpDistMirror => "http://mirrors.sykotik.org/pub/tor/",
549)             httpsDistMirror => "",
550)             rsyncDistMirror => "",
Andrew Lewman add a new mirror

Andrew Lewman authored 13 years ago

551)             hiddenServiceMirror => "",
Andrew Lewman add a missing comment.

Andrew Lewman authored 13 years ago

552)         },
Andrew Lewman add a new mirror

Andrew Lewman authored 13 years ago

553) 
554)         mirror028 => {
555)             adminContact => "gouki",
Andrew Lewman correct the org for the lat...

Andrew Lewman authored 13 years ago

556)             orgName => "5ยช Coluna",
Andrew Lewman add a new mirror

Andrew Lewman authored 13 years ago

557)             isoCC => "PT",
558)             subRegion => "",
559)             region => "PT",
560)             ipv4 => "True",
561)             ipv6 => "False",
562)             loadBalanced => "No",
563)             httpWebsiteMirror => "http://tor-www.5coluna.com",
564)             httpsWebsiteMirror => "https://tor-www.5coluna.com",
565)             rsyncWebsiteMirror => "",
566)             ftpWebsiteMirror => "",
567)             httpDistMirror => "http://tor-www.5coluna.com/dist/",
568)             httpsDistMirror => "https://tor-www.5coluna.com/dist/",
569)             rsyncDistMirror => "",
Andrew Lewman add new mirror

Andrew Lewman authored 13 years ago

570)             hiddenServiceMirror => "",
571)         },
572) 
573)         mirror029 => {
574)             adminContact => "",
575)             orgName => "",
576)             isoCC => "US",
577)             subRegion => "WA",
578)             region => "US",
579)             ipv4 => "True",
580)             ipv6 => "False",
581)             loadBalanced => "No",
582)             httpWebsiteMirror => "http://torproject.nwlinux.us",
583)             httpsWebsiteMirror => "",
584)             rsyncWebsiteMirror => "",
585)             ftpWebsiteMirror => "",
586)             httpDistMirror => "http://torproject.nwlinux.us/dist",
587)             httpsDistMirror => "",
588)             rsyncDistMirror => "",
Andrew Lewman add LazyTiger's mirror

Andrew Lewman authored 13 years ago

589)             hiddenServiceMirror => "",
590)         },
591)         mirror030 => {
592)             adminContact => "",
593)             orgName => "LazyTiger",
594)             isoCC => "FR",
595)             subRegion => "",
596)             region => "FR",
597)             ipv4 => "True",
598)             ipv6 => "False",
599)             loadBalanced => "No",
600)             httpWebsiteMirror => "http://tor.taiga-san.net/",
601)             httpsWebsiteMirror => "",
602)             rsyncWebsiteMirror => "",
603)             ftpWebsiteMirror => "",
604)             httpDistMirror => "http://tor.taiga-san.net/dist",
605)             httpsDistMirror => "",
606)             rsyncDistMirror => "",
Andrew Lewman Add the searchprivate mirror.

Andrew Lewman authored 13 years ago

607)             hiddenServiceMirror => "",
608)         },
609)         mirror031 => {
610)             adminContact => "",
611)             orgName => "searchprivate",
612)             isoCC => "US",
613)             subRegion => "TX",
614)             region => "US",
615)             ipv4 => "True",
616)             ipv6 => "False",
617)             loadBalanced => "No",
618)             httpWebsiteMirror => "http://tor.searchprivate.com",
619)             httpsWebsiteMirror => "",
620)             rsyncWebsiteMirror => "",
621)             ftpWebsiteMirror => "",
622)             httpDistMirror => "http://tor.searchprivate.com/dist",
623)             httpsDistMirror => "",
624)             rsyncDistMirror => "",
Andrew Lewman add the tomyn mirror.

Andrew Lewman authored 13 years ago

625)             hiddenServiceMirror => "",
626)         }
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

627) );
628) 
629) my $count = values %m;
630) print "We have a total of $count mirrors\n";
631) print "Fetching the last updated date for each mirror.\n";
632) 
Andrew Lewman Change mirror script to use...

Andrew Lewman authored 15 years ago

633) my $tortime;
634) $tortime = FetchDate("http://www.torproject.org/");
Jon@svn.torproject.org Some code donations. Thank...

Jon@svn.torproject.org authored 14 years ago

635) # Adjust offical Tor time by out-of-date offset: number of days * seconds per day 
Jon@svn.torproject.org Alter code, permit 48 hours...

Jon@svn.torproject.org authored 14 years ago

636) $tortime -= 1 * 172800; 
Andrew Lewman Change mirror script to use...

Andrew Lewman authored 15 years ago

637) print "The official time for Tor is $tortime. \n";
638) 
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

639) foreach my $server ( keys %m ) {
640) 
641)     print "Attempting to fetch from $m{$server}{'orgName'}\n";
642) 
643)     if ($m{$server}{'httpWebsiteMirror'}) {
644)         print "Attempt to fetch via HTTP.\n";
645)         $m{$server}{"updateDate"} = FetchDate("$m{$server}{'httpWebsiteMirror'}");
646)     } elsif ($m{$server}{'httpsWebsiteMirror'}) {
647)         print "Attempt to fetch via HTTPS.\n";
648)         $m{$server}{"updateDate"} = FetchDate("$m{$server}{'httpsWebsiteMirror'}");
649)     } elsif ($m{$server}{'ftpWebsiteMirror'}) {
650)         print "Attempt to fetch via FTP.\n";
651)         $m{$server}{"updateDate"} = FetchDate("$m{$server}{'ftpWebsiteMirror'}");
652)     } else {
653)         print "We were unable to fetch or store anything. We still have the following: $m{$server}{'updateDate'}\n";
654)     }
655) 
656)     print "We fetched and stored the following: $m{$server}{'updateDate'}\n";
657) 
658)  }
659) 
660) 
661) print "We sorted the following mirrors by their date of last update: \n";
662) foreach my $server ( sort { $m{$b}{'updateDate'} <=> $m{$a}{'updateDate'}} keys %m ) {
663) 
664)      print "\n";
665)      print "Mirror $m{$server}{'orgName'}: \n";
666) 
667)      foreach my $attrib ( sort keys %{$m{$server}} ) {
668)         print "$attrib = $m{$server}{$attrib}";
669)         print "\n";
670)      };
671) }
672) 
673) my $outFile = "include/mirrors-table.wmi";
674) my $html;
675) open(OUT, "> $outFile") or die "Can't open $outFile: $!";
676) 
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

677) # Here's where we open a file and print some wml include goodness
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

678) # This is storted from last known recent update to unknown update times
679) foreach my $server ( sort { $m{$b}{'updateDate'} <=> $m{$a}{'updateDate'}} keys %m ) {
680) 
Jacob Appelbaum ensure the date is either p...

Jacob Appelbaum authored 15 years ago

681)      my $time;
Andrew Lewman timeout should be 15, fix s...

Andrew Lewman authored 15 years ago

682)      if ( "$m{$server}{'updateDate'}" ne "Unknown") {
Jon@svn.torproject.org Some code donations. Thank...

Jon@svn.torproject.org authored 14 years ago

683) 	  if ( $m{$server}{'updateDate'} > $tortime ) {
Andrew Lewman fix code spacing to avoid t...

Andrew Lewman authored 15 years ago

684) 	    $time = "Up to date";
685) 	  } else { $time = "Out of date"; }
Andrew Lewman revert the last change to u...

Andrew Lewman authored 15 years ago

686)      } else { $time = "Unknown"; }
Jacob Appelbaum Removed dupe mirror entry,...

Jacob Appelbaum authored 15 years ago

687) print OUT <<"END";
688)      \n<tr>\n
689)          <td>$m{$server}{'isoCC'}</td>\n
690)          <td>$m{$server}{'orgName'}</td>\n
691)          <td>$time</td>\n
692) END
693) 
694)      my %prettyNames = (
695)                         httpWebsiteMirror => "http",
696)                         httpsWebsiteMirror => "https",
697)                         ftpWebsiteMirror => "ftp",
698)                         rsyncWebsiteMirror => "rsync",
699)                         httpDistMirror => "http",
700)                         httpsDistMirror => "https",
701)                         rsyncDistMirrors => "rsync", );
702) 
703)      foreach my $precious ( sort keys %prettyNames )
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 15 years ago

704)      {
705)         if ($m{$server}{"$precious"}) {
706)             print OUT "    <td><a href=\"" . $m{$server}{$precious} . "\">" .
Jacob Appelbaum Removed dupe mirror entry,...

Jacob Appelbaum authored 15 years ago

707)                       "$prettyNames{$precious}</a></td>\n";