mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-26 05:25:49 +00:00
Use [ips_fixed] over r.ripple.com as the default [ips]
This commit is contained in:
@@ -293,6 +293,7 @@
|
||||
# [ips]
|
||||
# r.ripple.com 51235
|
||||
#
|
||||
# The default is: [ips_fixed] addresses (if present) or r.ripple.com 51235
|
||||
#
|
||||
#
|
||||
# [ips_fixed]
|
||||
|
||||
@@ -512,10 +512,12 @@ OverlayImpl::onPrepare()
|
||||
|
||||
m_peerFinder->setConfig (config);
|
||||
|
||||
auto bootstrapIps (app_.config().IPS);
|
||||
|
||||
// If no IPs are specified, use the Ripple Labs round robin
|
||||
// pool to get some servers to insert into the boot cache.
|
||||
// Populate our boot cache: if there are no entries in [ips] then we use
|
||||
// the entries in [ips_fixed]. If both are empty, we resort to a round-robin
|
||||
// pool.
|
||||
auto bootstrapIps = app_.config().IPS.empty()
|
||||
? app_.config().IPS_FIXED
|
||||
: app_.config().IPS;
|
||||
if (bootstrapIps.empty ())
|
||||
bootstrapIps.push_back ("r.ripple.com 51235");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user