Changeset 0f1eb46


Ignore:
Timestamp:
Mar 17, 2010 4:22:11 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
05597ae
Parents:
4bda79b
Message:

add reseed host thx mathiasdm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/reseed/Reseeder.java

    r4bda79b r0f1eb46  
    3737    private static final long MAX_RESEED_RESPONSE_SIZE = 1024 * 1024;
    3838
    39     private static final String DEFAULT_SEED_URL = "http://a.netdb.i2p2.de/,http://b.netdb.i2p2.de/,http://c.netdb.i2p2.de/,http://reseed.i2p-projekt.de/,http://i2pbote.net/netDb/";
     39    private static final String DEFAULT_SEED_URL = "http://a.netdb.i2p2.de/,http://b.netdb.i2p2.de/,http://c.netdb.i2p2.de/,http://reseed.i2p-projekt.de/,http://i2pbote.net/netDb/,http://r31453.ovh.net/static_media/netDb/";
    4040    private static final String PROP_INPROGRESS = "net.i2p.router.web.ReseedHandler.reseedInProgress";
    4141    private static final String PROP_ERROR = "net.i2p.router.web.ReseedHandler.errorMessage";
     
    153153                }
    154154                String content = new String(contentRaw);
    155                 Set urls = new HashSet();
     155                Set<String> urls = new HashSet(1024);
    156156                int cur = 0;
    157157                int total = 0;
     
    177177                }
    178178
    179                 List urlList = new ArrayList(urls);
     179                List<String> urlList = new ArrayList(urls);
    180180                Collections.shuffle(urlList);
    181181                int fetched = 0;
    182182                int errors = 0;
    183183                // 200 max from one URL
    184                 for (Iterator iter = urlList.iterator(); iter.hasNext() && fetched < 200; ) {
     184                for (Iterator<String> iter = urlList.iterator(); iter.hasNext() && fetched < 200; ) {
    185185                    try {
    186186                        System.setProperty(PROP_STATUS,
    187187                            _("Reseeding: fetching router info from seed URL ({0} successful, {1} errors).", fetched, errors));
    188188
    189                         fetchSeed(seedURL, (String)iter.next());
     189                        fetchSeed(seedURL, iter.next());
    190190                        fetched++;
    191191                        if (echoStatus) {
Note: See TracChangeset for help on using the changeset viewer.