diff --git a/router/java/src/net/i2p/router/StatisticsManager.java b/router/java/src/net/i2p/router/StatisticsManager.java index 30e063b7bad6fe05752ff368ee13ef8c4c16b81a..74dae778aaa827876a4d942545003619a4e8b440 100644 --- a/router/java/src/net/i2p/router/StatisticsManager.java +++ b/router/java/src/net/i2p/router/StatisticsManager.java @@ -30,6 +30,10 @@ public class StatisticsManager implements Service { private final RouterContext _context; public final static String PROP_PUBLISH_RANKINGS = "router.publishPeerRankings"; + private static final String PROP_CONTACT_NAME = "netdb.contact"; + private static final String PROP_FAMILY_NAME = "netdb.family.name"; + private static final String PROP_FAMILY_KEY = "netdb.family.key"; + private static final String PROP_FAMILY_SIG = "netdb.family.sig"; /** enhance anonymity by only including build stats one out of this many times */ private static final int RANDOM_INCLUDE_STATS = 16; @@ -161,6 +165,21 @@ public class StatisticsManager implements Service { stats.setProperty("netdb.knownLeaseSets", String.valueOf(ls)); } + String contact = _context.getProperty(PROP_CONTACT_NAME); + if (contact != null) + stats.setProperty("contact", contact); + String family = _context.getProperty(PROP_FAMILY_NAME); + if (family != null) { + stats.setProperty("family", family); + // TODO + //String key = _context.getProperty(PROP_FAMILY_KEY); + //if (key != null) { + // get privkey + // sign something + // add b64 sig + //} + } + return stats; }