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