forked from I2P_Developers/i2p.i2p
Compare commits
1 Commits
i2p.i2p-ne
...
i2p.i2p-sy
Author | SHA1 | Date | |
---|---|---|---|
6d526f26e6 |
@ -1,3 +1,9 @@
|
||||
2024-04-27 zzz
|
||||
* Sybil: Disable IP checks for now
|
||||
|
||||
2024-04-26 zzz
|
||||
* Susimail: Search fixes
|
||||
|
||||
2024-04-25 zzz
|
||||
* Susimail: Add search box (Gitlab MR !190)
|
||||
* Transport: Remove SSU1 code from IMF/IMS (Gitlab MRs !189)
|
||||
|
@ -20,7 +20,7 @@ public class RouterVersion {
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
/** for example: "beta", "alpha", "rc" */
|
||||
public final static String QUALIFIER = "";
|
||||
public final static long BUILD = 2;
|
||||
public final static long BUILD = 3;
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
public final static String FULL_VERSION = VERSION + "-" + BUILD + QUALIFIER + EXTRA;
|
||||
|
@ -401,11 +401,11 @@ public class Analysis extends JobImpl implements RouterApp, Runnable {
|
||||
// unused here, just for the console, so use the same for all of them
|
||||
List<RouterInfo> dummy = new DummyList();
|
||||
calculateIPGroupsUs(ris, points, dummy, dummy, dummy, dummy, dummy);
|
||||
calculateIPGroups32(ris, points);
|
||||
calculateIPGroups24(ris, points);
|
||||
calculateIPGroups16(ris, points);
|
||||
calculateIPGroups64(ris, points);
|
||||
calculateIPGroups48(ris, points);
|
||||
//calculateIPGroups32(ris, points);
|
||||
//calculateIPGroups24(ris, points);
|
||||
//calculateIPGroups16(ris, points);
|
||||
//calculateIPGroups64(ris, points);
|
||||
//calculateIPGroups48(ris, points);
|
||||
|
||||
// Pairwise distance analysis
|
||||
// O(n**2)
|
||||
|
@ -27,12 +27,14 @@ import net.i2p.data.DataFormatException;
|
||||
import net.i2p.data.DataHelper;
|
||||
import net.i2p.data.Hash;
|
||||
import net.i2p.router.Blocklist;
|
||||
import net.i2p.router.RouterVersion;
|
||||
import net.i2p.update.UpdateManager;
|
||||
import net.i2p.update.UpdateType;
|
||||
import net.i2p.util.Log;
|
||||
import net.i2p.util.FileSuffixFilter;
|
||||
import net.i2p.util.SecureDirectory;
|
||||
import net.i2p.util.SecureFileOutputStream;
|
||||
import net.i2p.util.VersionComparator;
|
||||
|
||||
/**
|
||||
* Store and retrieve analysis files from disk.
|
||||
@ -256,6 +258,14 @@ public class PersistSybil {
|
||||
*/
|
||||
Map<String, Long> readBlocklist() {
|
||||
File f = getBlocklistFile();
|
||||
String prev = _context.getProperty("router.previousFullVersion");
|
||||
if (prev != null &&
|
||||
VersionComparator.comp(prev, "2.5.0-3") < 0 &&
|
||||
VersionComparator.comp(RouterVersion.FULL_VERSION, "2.5.0-3") >= 0) {
|
||||
// clear out and start over
|
||||
f.delete();
|
||||
return null;
|
||||
}
|
||||
Map<String, Long> rv = readBlocklist(f);
|
||||
if (rv != null)
|
||||
notifyVersion(f.lastModified());
|
||||
|
Reference in New Issue
Block a user