Report when interfaces are off.

This commit is contained in:
Arthur Britto
2012-05-05 16:50:39 -07:00
parent 6174bd082a
commit 2fad636ed2

View File

@@ -83,7 +83,11 @@ void Application::run()
if(!theConfig.PEER_IP.empty() && 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
{
std::cerr << "Peer interface: disabled" << std::endl;
}
// //
// Allow RPC connections. // Allow RPC connections.
@@ -91,7 +95,11 @@ void Application::run()
if(!theConfig.RPC_IP.empty() && 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
{
std::cerr << "RPC interface: disabled" << std::endl;
}
// //
// Begin connectting to network. // Begin connectting to network.