2005-10-19 jrandom
* Ported the snark bittorrent client to I2P such that it is compatible with i2p-bt and azneti2p. For usage information, grab an update and run "java -jar lib/i2psnark.jar". It isn't currently multitorrent capable, but adding in support would be fairly easy (see PeerAcceptor.java:49) * Don't allow leaseSets expiring too far in the future (thanks postman)
This commit is contained in:
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
public final static String ID = "$Revision: 1.271 $ $Date: 2005/10/17 19:39:46 $";
|
||||
public final static String ID = "$Revision: 1.272 $ $Date: 2005/10/19 00:15:15 $";
|
||||
public final static String VERSION = "0.6.1.3";
|
||||
public final static long BUILD = 2;
|
||||
public final static long BUILD = 3;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
|
||||
System.out.println("Router ID: " + RouterVersion.ID);
|
||||
|
@ -538,8 +538,10 @@ public class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacade {
|
||||
}
|
||||
}
|
||||
|
||||
/** I don't think it'll ever make sense to have a lease last for a full day */
|
||||
private static final long MAX_LEASE_FUTURE = 24*60*60*1000;
|
||||
/**
|
||||
* Don't let leaseSets go 20 minutes into the future
|
||||
*/
|
||||
static final long MAX_LEASE_FUTURE = 20*60*1000;
|
||||
|
||||
/**
|
||||
* Determine whether this leaseSet will be accepted as valid and current
|
||||
|
@ -66,7 +66,7 @@ class TransientDataStore implements DataStore {
|
||||
/** nothing published more than 5 minutes in the future */
|
||||
private final static long MAX_FUTURE_PUBLISH_DATE = 5*60*1000;
|
||||
/** don't accept tunnels set to expire more than 3 hours in the future, which is insane */
|
||||
private final static long MAX_FUTURE_EXPIRATION_DATE = 3*60*60*1000;
|
||||
private final static long MAX_FUTURE_EXPIRATION_DATE = KademliaNetworkDatabaseFacade.MAX_LEASE_FUTURE;
|
||||
|
||||
public void put(Hash key, DataStructure data) {
|
||||
if (data == null) return;
|
||||
|
Reference in New Issue
Block a user