diff --git a/router/java/src/net/i2p/router/networkdb/reseed/ReseedBundler.java b/router/java/src/net/i2p/router/networkdb/reseed/ReseedBundler.java index d3cab56adfd121bcf5ff356c52fe775f88f806b9..6403afb317e3bfc9ae087e87aa7daeb71da92e12 100644 --- a/router/java/src/net/i2p/router/networkdb/reseed/ReseedBundler.java +++ b/router/java/src/net/i2p/router/networkdb/reseed/ReseedBundler.java @@ -26,6 +26,7 @@ import net.i2p.data.Hash; import net.i2p.data.router.RouterAddress; import net.i2p.data.router.RouterInfo; import net.i2p.router.RouterContext; +import net.i2p.util.VersionComparator; /** * Copy a random selection of 'count' router infos from configDir/netDb @@ -46,6 +47,8 @@ public class ReseedBundler { private final static String ROUTERINFO_PREFIX = "routerInfo-"; private final static String ROUTERINFO_SUFFIX = ".dat"; private static final int MINIMUM = 50; + /** NTCP2 */ + private static final String MIN_VERSION = "0.9.36"; public ReseedBundler(RouterContext ctx) { _context = ctx; @@ -83,6 +86,8 @@ public class ReseedBundler { continue; if (ri.getCapabilities().contains("K")) continue; + if (VersionComparator.comp(ri.getVersion(), MIN_VERSION) < 0) + continue; Collection<RouterAddress> addrs = ri.getAddresses(); if (addrs.isEmpty()) continue;