diff --git a/router/java/src/net/i2p/router/sybil/Analysis.java b/router/java/src/net/i2p/router/sybil/Analysis.java index cd895ee85c51e087c735bb52308eacbc1e0f9039..c3ac82f122ff13c58ddfce670c8e896e6ab458a6 100644 --- a/router/java/src/net/i2p/router/sybil/Analysis.java +++ b/router/java/src/net/i2p/router/sybil/Analysis.java @@ -116,7 +116,8 @@ public class Analysis extends JobImpl implements RouterApp, Runnable { public static final long SHORT_REMOVE_TIME = 2*24*60*60*1000L; public static final long DEFAULT_FREQUENCY = 24*60*60*1000L; public static final float MIN_BLOCK_POINTS = 12.01f; - + private static final byte[] IPV6_LOCALHOST = new byte[16]; + static { IPV6_LOCALHOST[15] = 1; } /** Get via getInstance() */ private Analysis(RouterContext ctx, ClientAppManager mgr, String[] args) { @@ -584,7 +585,9 @@ public class Analysis extends JobImpl implements RouterApp, Runnable { for (RouterAddress ra : ri.getAddresses()) { byte[] rv = ra.getIP(); if (rv != null && rv.length == 16) - return rv; + // i2pd + if (!DataHelper.eq(rv, IPV6_LOCALHOST)) + return rv; } return null; }