mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
PEER_PRIVATE suppresses outbound connections to unconfigured peers.
This commit is contained in:
@@ -614,20 +614,21 @@ public:
|
||||
// Begin connecting to network.
|
||||
//
|
||||
if (!getConfig ().RUN_STANDALONE)
|
||||
{
|
||||
m_peers->start ();
|
||||
if (getConfig ().PEER_PRIVATE && getConfig ().IPS.empty ())
|
||||
m_journal.warning << "No outbound peer connections will be made";
|
||||
|
||||
if (getConfig ().RUN_STANDALONE)
|
||||
// VFALCO NOTE the state timer resets the deadlock detector.
|
||||
//
|
||||
m_networkOPs->setStateTimer ();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_journal.warning << "Running in standalone mode";
|
||||
|
||||
m_networkOPs->setStandAlone ();
|
||||
}
|
||||
else
|
||||
{
|
||||
// VFALCO NOTE the state timer resets the deadlock detector.
|
||||
//
|
||||
m_networkOPs->setStateTimer ();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
@@ -352,7 +352,8 @@ void PeersImp::policyEnforce ()
|
||||
(void) mPolicyTimer.cancel ();
|
||||
|
||||
// Enforce policies.
|
||||
policyLowWater ();
|
||||
if (!getConfig ().PEER_PRIVATE)
|
||||
policyLowWater ();
|
||||
|
||||
if (((++mPhase) % 12) == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user