mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 04:25:51 +00:00
Initialize HTTP client after the config is loaded
This commit is contained in:
@@ -270,8 +270,6 @@ void Config::setup (std::string const& strConf, bool bQuiet)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HTTPClient::initializeSSLContext(*this);
|
|
||||||
|
|
||||||
// Update default values
|
// Update default values
|
||||||
load ();
|
load ();
|
||||||
{
|
{
|
||||||
@@ -290,6 +288,8 @@ void Config::setup (std::string const& strConf, bool bQuiet)
|
|||||||
boost::str (boost::format ("Can not create %s") % dataDir));
|
boost::str (boost::format ("Can not create %s") % dataDir));
|
||||||
|
|
||||||
legacy ("database_path", boost::filesystem::absolute (dataDir).string ());
|
legacy ("database_path", boost::filesystem::absolute (dataDir).string ());
|
||||||
|
|
||||||
|
HTTPClient::initializeSSLContext(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Config::load ()
|
void Config::load ()
|
||||||
|
|||||||
Reference in New Issue
Block a user