This commit is contained in:
zzz
2011-09-01 13:50:00 +00:00
parent b3711e31ad
commit cdb6313c33

View File

@ -550,13 +550,13 @@ public class Router implements RouterClock.ClockShiftListener {
// if prop set to true, don't tell people we are ff even if we are // if prop set to true, don't tell people we are ff even if we are
if (FloodfillNetworkDatabaseFacade.floodfillEnabled(_context) && if (FloodfillNetworkDatabaseFacade.floodfillEnabled(_context) &&
!Boolean.valueOf(_context.getProperty("router.hideFloodfillParticipant")).booleanValue()) !_context.getBooleanProperty("router.hideFloodfillParticipant"))
ri.addCapability(FloodfillNetworkDatabaseFacade.CAPABILITY_FLOODFILL); ri.addCapability(FloodfillNetworkDatabaseFacade.CAPABILITY_FLOODFILL);
if(Boolean.valueOf(_context.getProperty(PROP_HIDDEN)).booleanValue()) if(_context.getBooleanProperty(PROP_HIDDEN))
ri.addCapability(RouterInfo.CAPABILITY_HIDDEN); ri.addCapability(RouterInfo.CAPABILITY_HIDDEN);
if (Boolean.valueOf(_context.getProperty(PROP_FORCE_UNREACHABLE)).booleanValue()) { if (_context.getBooleanProperty(PROP_FORCE_UNREACHABLE)) {
ri.addCapability(CAPABILITY_UNREACHABLE); ri.addCapability(CAPABILITY_UNREACHABLE);
return; return;
} }
@ -578,7 +578,7 @@ public class Router implements RouterClock.ClockShiftListener {
RouterInfo ri = _routerInfo; RouterInfo ri = _routerInfo;
if ( (ri != null) && (ri.isHidden()) ) if ( (ri != null) && (ri.isHidden()) )
return true; return true;
return Boolean.valueOf(_context.getProperty(PROP_HIDDEN_HIDDEN)).booleanValue(); return _context.getBooleanProperty(PROP_HIDDEN_HIDDEN);
} }
/** /**