Dont show firewall warning unless its for real

This commit is contained in:
zzz
2009-08-13 18:46:14 +00:00
parent 5c6d757e35
commit 5decf3cd7a
2 changed files with 13 additions and 1 deletions

View File

@ -154,6 +154,18 @@ public class SummaryHelper extends HelperBase {
else
return _context.commSystem().countActivePeers();
}
/**
* Should we warn about a possible firewall problem?
*/
public boolean showFirewallWarning() {
return _context != null &&
_context.netDb().isInitialized() &&
_context.router().getUptime() > 2*60*1000 &&
_context.commSystem().countActivePeers() <= 0 &&
_context.netDb().getKnownRouters() > 5;
}
/**
* How many active identities have we spoken with recently
*