76ebe69be13a035ab5f2527cd4c86c3cda8642cb
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 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 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 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 16 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 14 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 16 years ago

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

Jacob Appelbaum authored 16 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 16 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
Sebastian Hahn Add a hack so the mirror sc...

Sebastian Hahn authored 15 years ago

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

Jacob Appelbaum authored 16 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 16 years ago

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

Jacob Appelbaum authored 16 years ago

52) 
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 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 16 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 16 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 16 years ago

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

Jacob Appelbaum authored 16 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 15 years ago

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

Andrew Lewman authored 14 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 15 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 15 years ago

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

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Jacob Appelbaum authored 16 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 16 years ago

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

Jacob Appelbaum authored 16 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 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Jacob Appelbaum authored 16 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 14 years ago

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

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 14 years ago

163)        mirror004 => {
Jon@svn.torproject.org Delist berapla.de, site dec...

Jon@svn.torproject.org authored 15 years ago

164)             adminContact => "doc DOT kuehn AT nexgo DOT de",
165)             orgName => " spacecowboy ",
166)             isoCC => " ",
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

167)             subRegion => "",
Jon@svn.torproject.org Delist berapla.de, site dec...

Jon@svn.torproject.org authored 15 years ago

168)             region => "DE",
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

169)             ipv4 => "True",
170)             ipv6 => "False",
Jon@svn.torproject.org Delist berapla.de, site dec...

Jon@svn.torproject.org authored 15 years ago

171)             loadBalanced => "No",
172)             httpWebsiteMirror => "http://tor-proxy.de/tor-mirror/",
173)             httpsWebsiteMirror => "https://tor-proxy.de/tor-mirror/",
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

174)             rsyncWebsiteMirror => "",
Jon@svn.torproject.org Delist berapla.de, site dec...

Jon@svn.torproject.org authored 15 years ago

175)             ftpWebsiteMirror => "",
176)             httpDistMirror => "http://tor-proxy.de/tor-mirror/dist/",
177)             httpsDistMirror => "https://tor-proxy.de/tor-mirror/dist/",
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

178)             rsyncDistMirror => "",
Jon@svn.torproject.org Delist berapla.de, site dec...

Jon@svn.torproject.org authored 15 years ago

179)             hiddenServiceMirror => "",
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

185)             orgName => "Spline",
186)             isoCC => "DE",
187)             subRegion => "FU",
188)             region => "Europe",
189)             ipv4 => "True",
190)             ipv6 => "False",
191)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

198)         },
199) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

201)             adminContact => "BarkerJr AT barkerjr DOT net",
202)             orgName => "BarkerJr",
203)             isoCC => "US",
204)             subRegion => "",
205)             region => "US",
206)             ipv4 => "True",
207)             ipv6 => "False",
208)             loadBalanced => "No",
Andrew Lewman update mirrors.

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

216)             hiddenServiceMirror => "",
217)             updateDate => "Unknown",
218)         },
219) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Mfr authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

223)             isoCC => "DK",
224)             subRegion => "",
225)             region => "Europe",
226)             ipv4 => "True",
227)             ipv6 => "False",
228)             loadBalanced => "Unknown",
Andrew Lewman update one mirror per request

Andrew Lewman authored 14 years ago

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

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

235)         },
236) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Mfr authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

240)             isoCC => "NL",
241)             subRegion => "",
242)             region => "Europe",
243)             ipv4 => "True",
244)             ipv6 => "False",
245)             loadBalanced => "Unknown",
246)             httpWebsiteMirror => "http://tor.amorphis.eu/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

248)             ftpWebsiteMirror => "",
249)             httpDistMirror => "http://tor.amorphis.eu/dist/",
250)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

252)         },
253) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

256)             orgName => "BIT BV",
257)             isoCC => "NL",
258)             subRegion => "",
259)             region => "Europe",
260)             ipv4 => "True",
261)             ipv6 => "False",
262)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

269)         },
270) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

273)             orgName => "CCC",
274)             isoCC => "NL",
275)             subRegion => "",
276)             region => "Europe",
277)             ipv4 => "True",
278)             ipv6 => "False",
279)             loadBalanced => "Unknown",
280)             httpWebsiteMirror => "http://tor.ccc.de/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

282)             ftpWebsiteMirror => "",
283)             httpDistMirror => "http://tor.ccc.de/dist/",
284)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

286)         },
287) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Mfr authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

291)             isoCC => "NL",
292)             subRegion => "Haarlem",
293)             region => "Europe",
294)             ipv4 => "True",
295)             ipv6 => "False",
296)             loadBalanced => "Unknown",
297)             httpWebsiteMirror => "http://tor.kamagurka.org/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

299)             ftpWebsiteMirror => "",
300)             httpDistMirror => "http://tor.kamagurka.org/dist/",
301)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

303)         },
304) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Mfr authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

308)             isoCC => "NO",
309)             subRegion => "",
310)             region => "Europe",
311)             ipv4 => "True",
312)             ipv6 => "False",
313)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

320)         },
321) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Mfr authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

327)             region => "North America",
328)             ipv4 => "True",
329)             ipv6 => "False",
330)             loadBalanced => "Unknown",
331)             httpWebsiteMirror => "http://www.theonionrouter.com/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

333)             ftpWebsiteMirror => "",
334)             httpDistMirror => "http://www.theonionrouter.com/dist/",
335)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

337)         },
338) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Mfr authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

342)             isoCC => "US",
343)             subRegion => "",
344)             region => "North America",
345)             ipv4 => "True",
346)             ipv6 => "False",
347)             loadBalanced => "Unknown",
348)             httpWebsiteMirror => "http://torproj.xpdm.us/",
Jacob Appelbaum Update table to include htt...

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

354)             rsyncDistMirror => "",
355)             hiddenServiceMirror => "http://h3prhz46uktgm4tt.onion/",
356)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 14 years ago

359)         mirror015 => {
Jon@svn.torproject.org Delist free.be.ijing2008.cn...

Jon@svn.torproject.org authored 15 years ago

360)             adminContact => "",
Andrew Lewman cybervalley is live.

Andrew Lewman authored 14 years ago

361)             orgName => "cybervalley",
362)             isoCC => "IT",
Jon@svn.torproject.org Delist free.be.ijing2008.cn...

Jon@svn.torproject.org authored 15 years ago

363)             subRegion => "",
Andrew Lewman cybervalley is live.

Andrew Lewman authored 14 years ago

364)             region => "Italy",
Jacob Appelbaum Updated to add new mirror.

Jacob Appelbaum authored 16 years ago

365)             ipv4 => "True",
366)             ipv6 => "False",
367)             loadBalanced => "No",
Jon@svn.torproject.org Delist free.be.ijing2008.cn...

Jon@svn.torproject.org authored 15 years ago

368)             httpWebsiteMirror => "http://torproject.cybervalley.org/",
Jacob Appelbaum Updated to add new mirror.

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 15 years ago

370)             rsyncWebsiteMirror => "",
Jacob Appelbaum Updated to add new mirror.

Jacob Appelbaum authored 16 years ago

371)             ftpWebsiteMirror => "",
Jon@svn.torproject.org Delist free.be.ijing2008.cn...

Jon@svn.torproject.org authored 15 years ago

372)             httpDistMirror => "",
Jacob Appelbaum Updated to add new mirror.

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 15 years ago

377)         },
Jacob Appelbaum Updated to add new mirror.

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 15 years ago

381)             orgName => "Unknown",
382)             isoCC => "HU",
383)             subRegion => "Hungary",
384)             region => "Europe",
385)             ipv4 => "True",
386)             ipv6 => "False",
387)             loadBalanced => "No",
Jon@svn.torproject.org Change tor.hu (adjustements...

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 15 years ago

393)             httpsDistMirror => "",
394)             rsyncDistMirror => "",
395)             hiddenServiceMirror => "",
396)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Roger Dingledine authored 15 years ago

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

Andrew Lewman authored 15 years ago

403)             subRegion => "Ukraine",
404)             region => "Eastern Europe",
405)             ipv4 => "True",
406)             ipv6 => "False",
407)             loadBalanced => "No",
408)             httpWebsiteMirror => "http://torua.reactor-xg.kiev.ua/",
409)             httpsWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 15 years ago

413)             httpsDistMirror => "",
414)             rsyncDistMirror => "",
415)             hiddenServiceMirror => "",
416)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 15 years ago

420)             adminContact => "",
421)             orgName => "chaos darmstadt",
422)             isoCC => "DE",
423)             subRegion => "Germany",
424)             region => "Europe",
425)             ipv4 => "True",
426)             ipv6 => "False",
427)             loadBalanced => "No",
428)             httpWebsiteMirror => "http://mirrors.chaos-darmstadt.de/tor-mirror/",
429)             httpsWebsiteMirror => "",
430)             rsyncWebsiteMirror => "",
431)             ftpWebsiteMirror => "",
432)             httpDistMirror => "http://mirrors.chaos-darmstadt.de/tor-mirror/dist/",
433)             httpsDistMirror => "",
434)             rsyncDistMirror => "",
435)             hiddenServiceMirror => "",
436)             updateDate => "Unknown",
Andrew Lewman add the newest two mirrors

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 15 years ago

442)             isoCC => "US",
443)             subRegion => "California",
444)             region => "US",
445)             ipv4 => "True",
446)             ipv6 => "False",
447)             loadBalanced => "No",
448)             httpWebsiteMirror => "http://tor.askapache.com/",
449)             httpsWebsiteMirror => "",
450)             rsyncWebsiteMirror => "",
451)             ftpWebsiteMirror => "",
Jon@svn.torproject.org Update AskApache - http://a...

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 15 years ago

453)             httpsDistMirror => "",
454)             rsyncDistMirror => "",
455)             hiddenServiceMirror => "",
456)             updateDate => "Unknown",
Andrew Lewman add commas in the right places

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 15 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 15 years ago

465)             ipv4 => "True",
466)             ipv6 => "False",
467)             loadBalanced => "No",
Jon@svn.torproject.org Delist "digitip" DNS deconf...

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 15 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 15 years ago

482)             isoCC => "IN",
483)             subRegion => "",
484)             region => "IN",
485)             ipv4 => "True",
486)             ipv6 => "False",
487)             loadBalanced => "No",
Jon@svn.torproject.org resolving inconsistancy

Jon@svn.torproject.org authored 14 years ago

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

Andrew Lewman authored 15 years ago

489)             httpsWebsiteMirror => "",
490)             rsyncWebsiteMirror => "",
491)             ftpWebsiteMirror => "",
492)             httpDistMirror => "http://www.torproject.org.in/dist/",
493)             httpsDistMirror => "",
494)             rsyncDistMirror => "",
495)             hiddenServiceMirror => "",
496)             updateDate => "Unknown",
497)         },
498) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

499)         mirror022 => {
Jon@svn.torproject.org new mirror http://archives....

Jon@svn.torproject.org authored 14 years ago

500)             adminContact => "",
501)             orgName => "NIIF Institute",
502)             isoCC => "HU",
503)             subRegion => "",
504)             region => "HU",
505)             ipv4 => "True",
506)             ipv6 => "False",
507)             loadBalanced => "No",
508)             httpWebsiteMirror => "http://trak.tor.hu/",
509)             httpsWebsiteMirror => "",
510)             rsyncWebsiteMirror => "",
511)             ftpWebsiteMirror => "",
512)             httpDistMirror => "http://trak.tor.hu/dist/",
513)             httpsDistMirror => "",
514)             rsyncDistMirror => "",
515)             hiddenServiceMirror => "",
516)         },
Andrew Lewman add two new mirrors.

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

519)             adminContact => "sina at accessnow.org",
520)             orgName => "Access",
521)             isoCC => "IR",
522)             subRegion => "",
523)             region => "IR",
524)             ipv4 => "True",
525)             ipv6 => "False",
526)             loadBalanced => "Yes",
527)             httpWebsiteMirror => "http://irani-tor.ath.cx/",
528)             httpsWebsiteMirror => "",
529)             rsyncWebsiteMirror => "",
530)             ftpWebsiteMirror => "",
531)             httpDistMirror => "http://irani-tor.ath.cx/dist/",
532)             httpsDistMirror => "",
533)             rsyncDistMirror => "",
Andrew Lewman Add the latest mirror in ru...

Andrew Lewman authored 14 years ago

534)             hiddenServiceMirror => "",
535)         },
536) 
Andrew Lewman purge all of the consistent...

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

543)             ipv4 => "True",
544)             ipv6 => "False",
545)             loadBalanced => "No",
546)             httpWebsiteMirror => "http://tor.homosu.net/",
547)             httpsWebsiteMirror => "",
548)             rsyncWebsiteMirror => "",
549)             ftpWebsiteMirror => "",
550)             httpDistMirror => "http://tor.homosu.net/dist",
551)             httpsDistMirror => "",
552)             rsyncDistMirror => "",
Andrew Lewman Add 1.5 of the estonian mir...

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

560)             subRegion => "",
561)             region => "EE",
562)             ipv4 => "True",
563)             ipv6 => "False",
564)             loadBalanced => "No",
565)             httpWebsiteMirror => "http://cyberside.planet.ee/tor/",
566)             httpsWebsiteMirror => "",
567)             rsyncWebsiteMirror => "",
568)             ftpWebsiteMirror => "",
569)             httpDistMirror => "http://freedos.pri.ee/tor/",
570)             httpsDistMirror => "",
571)             rsyncDistMirror => "",
Andrew Lewman add a mirror, update the ta...

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

576)             adminContact => "me_ at tomyn dot com",
577)             orgName => "tomyn",
578)             isoCC => "UK",
579)             subRegion => "",
580)             region => "UK",
581)             ipv4 => "True",
582)             ipv6 => "False",
583)             loadBalanced => "No",
584)             httpWebsiteMirror => "http://tor.tomyn.com",
585)             httpsWebsiteMirror => "https://tor.tomyn.com",
586)             rsyncWebsiteMirror => "",
587)             ftpWebsiteMirror => "ftp://tor.tomyn.com",
588)             httpDistMirror => "http://tor.tomyn.com/dist",
589)             httpsDistMirror => "https://tor.tomyn.com/dist",
590)             rsyncDistMirror => "",
591)             hiddenServiceMirror => "",
592)         }
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

593) );
594) 
595) my $count = values %m;
596) print "We have a total of $count mirrors\n";
597) print "Fetching the last updated date for each mirror.\n";
598) 
Andrew Lewman Change mirror script to use...

Andrew Lewman authored 15 years ago

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

Jon@svn.torproject.org authored 15 years ago

601) # 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 15 years ago

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

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

605) foreach my $server ( keys %m ) {
606) 
607)     print "Attempting to fetch from $m{$server}{'orgName'}\n";
608) 
609)     if ($m{$server}{'httpWebsiteMirror'}) {
610)         print "Attempt to fetch via HTTP.\n";
611)         $m{$server}{"updateDate"} = FetchDate("$m{$server}{'httpWebsiteMirror'}");
612)     } elsif ($m{$server}{'httpsWebsiteMirror'}) {
613)         print "Attempt to fetch via HTTPS.\n";
614)         $m{$server}{"updateDate"} = FetchDate("$m{$server}{'httpsWebsiteMirror'}");
615)     } elsif ($m{$server}{'ftpWebsiteMirror'}) {
616)         print "Attempt to fetch via FTP.\n";
617)         $m{$server}{"updateDate"} = FetchDate("$m{$server}{'ftpWebsiteMirror'}");
618)     } else {
619)         print "We were unable to fetch or store anything. We still have the following: $m{$server}{'updateDate'}\n";
620)     }
621) 
622)     print "We fetched and stored the following: $m{$server}{'updateDate'}\n";
623) 
624)  }
625) 
626) 
627) print "We sorted the following mirrors by their date of last update: \n";
628) foreach my $server ( sort { $m{$b}{'updateDate'} <=> $m{$a}{'updateDate'}} keys %m ) {
629) 
630)      print "\n";
631)      print "Mirror $m{$server}{'orgName'}: \n";
632) 
633)      foreach my $attrib ( sort keys %{$m{$server}} ) {
634)         print "$attrib = $m{$server}{$attrib}";
635)         print "\n";
636)      };
637) }
638) 
639) my $outFile = "include/mirrors-table.wmi";
640) my $html;
641) open(OUT, "> $outFile") or die "Can't open $outFile: $!";
642) 
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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

Andrew Lewman authored 15 years ago

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

Jon@svn.torproject.org authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Andrew Lewman authored 15 years ago

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

Jacob Appelbaum authored 16 years ago

653) print OUT <<"END";
654)      \n<tr>\n
655)          <td>$m{$server}{'isoCC'}</td>\n
656)          <td>$m{$server}{'orgName'}</td>\n
657)          <td>$time</td>\n
658) END
659) 
660)      my %prettyNames = (
661)                         httpWebsiteMirror => "http",
662)                         httpsWebsiteMirror => "https",
663)                         ftpWebsiteMirror => "ftp",
664)                         rsyncWebsiteMirror => "rsync",
665)                         httpDistMirror => "http",
666)                         httpsDistMirror => "https",
667)                         rsyncDistMirrors => "rsync", );
668) 
669)      foreach my $precious ( sort keys %prettyNames )
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

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

Jacob Appelbaum authored 16 years ago

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