mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix crash if no config file.
This commit is contained in:
@@ -80,7 +80,7 @@ void Application::run()
|
|||||||
//
|
//
|
||||||
// Allow peer connections.
|
// Allow peer connections.
|
||||||
//
|
//
|
||||||
if(theConfig.PEER_PORT)
|
if(!theConfig.PEER_IP.empty() && theConfig.PEER_PORT)
|
||||||
{
|
{
|
||||||
mPeerDoor=new PeerDoor(mIOService);
|
mPeerDoor=new PeerDoor(mIOService);
|
||||||
}//else BOOST_LOG_TRIVIAL(info) << "No Peer Port set. Not listening for connections.";
|
}//else BOOST_LOG_TRIVIAL(info) << "No Peer Port set. Not listening for connections.";
|
||||||
@@ -88,7 +88,7 @@ void Application::run()
|
|||||||
//
|
//
|
||||||
// Allow RPC connections.
|
// Allow RPC connections.
|
||||||
//
|
//
|
||||||
if(theConfig.RPC_PORT)
|
if(!theConfig.RPC_IP.empty() && theConfig.RPC_PORT)
|
||||||
{
|
{
|
||||||
mRPCDoor=new RPCDoor(mIOService);
|
mRPCDoor=new RPCDoor(mIOService);
|
||||||
}//else BOOST_LOG_TRIVIAL(info) << "No RPC Port set. Not listening for commands.";
|
}//else BOOST_LOG_TRIVIAL(info) << "No RPC Port set. Not listening for commands.";
|
||||||
|
|||||||
Reference in New Issue
Block a user