2007-07-09 zzz
* i2psnark: give a better error message for a non-i2p torrent
This commit is contained in:
@ -452,6 +452,11 @@ public class SnarkManager implements Snark.CompleteListener {
|
||||
}
|
||||
|
||||
private String locked_validateTorrent(MetaInfo info) throws IOException {
|
||||
String announce = info.getAnnounce();
|
||||
// basic validation of url
|
||||
if ((!announce.startsWith("http://")) ||
|
||||
(announce.indexOf(".i2p/") < 0))
|
||||
return "Non-i2p tracker in " + info.getName() + ", deleting it";
|
||||
List files = info.getFiles();
|
||||
if ( (files != null) && (files.size() > MAX_FILES_PER_TORRENT) ) {
|
||||
return "Too many files in " + info.getName() + " (" + files.size() + "), deleting it";
|
||||
|
@ -1,4 +1,7 @@
|
||||
$Id: history.txt,v 1.572 2007-07-04 17:58:50 zzz Exp $
|
||||
$Id: history.txt,v 1.573 2007-07-07 15:03:52 zzz Exp $
|
||||
|
||||
2007-07-09 zzz
|
||||
* i2psnark: give a better error message for a non-i2p torrent
|
||||
|
||||
2007-07-07 zzz
|
||||
* Add auto-detect IP/Port to NTCP. When enabled on config.jsp,
|
||||
|
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
public final static String ID = "$Revision: 1.507 $ $Date: 2007-07-04 17:58:48 $";
|
||||
public final static String ID = "$Revision: 1.508 $ $Date: 2007-07-07 15:03:50 $";
|
||||
public final static String VERSION = "0.6.1.28";
|
||||
public final static long BUILD = 10;
|
||||
public final static long BUILD = 11;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
|
||||
System.out.println("Router ID: " + RouterVersion.ID);
|
||||
|
Reference in New Issue
Block a user