forked from I2P_Developers/i2p.i2p
* Throttle: Set a default router.maxParticipatingTunnels = 3000 (was none)
* Stats: Add a fake uptime if not publishing stats, to get participating tunnels * build.xml: - Add an updateSmall target which includes only the essentials - Clean up the build file some - Remove empty eepsite/ and subdirs from i2pupdate.zip * configtunnels.jsp: Add warning * i2psnark: Catch a bencode exception (bad peer from tracker) earlier * i2psnark-standalone: Fix exception http://forum.i2p/viewtopic.php?p=12217
This commit is contained in:
@ -95,7 +95,14 @@ public class TrackerInfo
|
||||
Iterator it = l.iterator();
|
||||
while (it.hasNext())
|
||||
{
|
||||
PeerID peerID = new PeerID(((BEValue)it.next()).getMap());
|
||||
PeerID peerID;
|
||||
try {
|
||||
peerID = new PeerID(((BEValue)it.next()).getMap());
|
||||
} catch (InvalidBEncodingException ibe) {
|
||||
// don't let one bad entry spoil the whole list
|
||||
Snark.debug("Discarding peer from list: " + ibe, Snark.ERROR);
|
||||
continue;
|
||||
}
|
||||
peers.add(new Peer(peerID, my_id, metainfo));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user