Dont show firewall warning unless its for real
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user