From d9d0a57c311c5951be24e49bdee7c4080ee5f1fa Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 5 May 2012 16:42:50 -0700 Subject: [PATCH] Fix crash if no config file. --- src/Application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Application.cpp b/src/Application.cpp index 41a3cc201..c43985ba1 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -80,7 +80,7 @@ void Application::run() // // Allow peer connections. // - if(theConfig.PEER_PORT) + if(!theConfig.PEER_IP.empty() && theConfig.PEER_PORT) { mPeerDoor=new PeerDoor(mIOService); }//else BOOST_LOG_TRIVIAL(info) << "No Peer Port set. Not listening for connections."; @@ -88,7 +88,7 @@ void Application::run() // // Allow RPC connections. // - if(theConfig.RPC_PORT) + if(!theConfig.RPC_IP.empty() && theConfig.RPC_PORT) { mRPCDoor=new RPCDoor(mIOService); }//else BOOST_LOG_TRIVIAL(info) << "No RPC Port set. Not listening for commands.";