Changeset 5decf3cd


Ignore:
Timestamp:
Aug 13, 2009 6:46:14 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ab08ac7
Parents:
5c6d757
Message:

Dont show firewall warning unless its for real

Location:
apps/routerconsole
Files:
2 edited

Legend:

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

    r5c6d757 r5decf3cd  
    155155            return _context.commSystem().countActivePeers();
    156156    }
     157
     158    /**
     159     * Should we warn about a possible firewall problem?
     160     */
     161    public boolean showFirewallWarning() {
     162        return _context != null &&
     163               _context.netDb().isInitialized() &&
     164               _context.router().getUptime() > 2*60*1000 &&
     165               _context.commSystem().countActivePeers() <= 0 &&
     166               _context.netDb().getKnownRouters() > 5;
     167    }
     168
    157169    /**
    158170     * How many active identities have we spoken with recently
  • apps/routerconsole/jsp/summarynoframe.jsp

    r5c6d757 r5decf3cd  
    9393<tr><td align="left"><b>Integrated:</b></td><td align="right"><jsp:getProperty name="helper" property="wellIntegratedPeers" /></td></tr>
    9494<tr><td align="left"><b>Known:</b></td><td align="right"><jsp:getProperty name="helper" property="allPeers" /></td></tr></table><hr><%
    95     if (helper.getActivePeers() <= 0) {
     95    if (helper.showFirewallWarning()) {
    9696        %><h4><a href="config.jsp" target="_top" title="Help with firewall configuration.">Check NAT/firewall</a></h4><%
    9797    }
Note: See TracChangeset for help on using the changeset viewer.