Changeset 3ad3988


Ignore:
Timestamp:
May 13, 2009 7:20:49 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
86f0269
Parents:
757855a
Message:

Add warning for 1-hop tunnels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigTunnelsHelper.java

    r757855a r3ad3988  
    6464            out.getLength() + out.getLengthVariance() <= 0)
    6565            buf.append("<tr><td colspan=\"3\"><font color=\"red\">ANONYMITY WARNING - Settings include 0-hop tunnels</font></td></tr>");
     66        else if (in.getLength() <= 1 ||
     67            in.getLength() + in.getLengthVariance() <= 1 ||
     68            out.getLength() <= 1 ||
     69            out.getLength() + out.getLengthVariance() <= 1)
     70            buf.append("<tr><td colspan=\"3\"><font color=\"red\">ANONYMITY WARNING - Settings include 1-hop tunnels</font></td></tr>");
    6671        if (in.getLength() + Math.abs(in.getLengthVariance()) >= WARN_LENGTH ||
    6772            out.getLength() + Math.abs(out.getLengthVariance()) >= WARN_LENGTH)
Note: See TracChangeset for help on using the changeset viewer.