mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
More wallet work and RPC work. The first real newcoin RPC "createfamily"
(to create a family of accounts) works.
This commit is contained in:
@@ -8,7 +8,7 @@ using namespace std;
|
||||
using namespace boost::asio::ip;
|
||||
|
||||
RPCDoor::RPCDoor(boost::asio::io_service& io_service) :
|
||||
mAcceptor(io_service, tcp::endpoint(boost::asio::ip::address_v4::loopback(), theConfig.RPC_PORT))
|
||||
mAcceptor(io_service, tcp::endpoint(boost::asio::ip::address_v4::loopback(), theConfig.RPC_PORT))
|
||||
{
|
||||
|
||||
startListening();
|
||||
@@ -24,7 +24,7 @@ void RPCDoor::startListening()
|
||||
boost::asio::placeholders::error));
|
||||
}
|
||||
|
||||
bool RPCDoor::isClientAllowed(std::string ip)
|
||||
bool RPCDoor::isClientAllowed(const std::string& ip)
|
||||
{
|
||||
if(ip=="127.0.0.1") return(true);
|
||||
return(false);
|
||||
@@ -45,4 +45,4 @@ void RPCDoor::handleConnect(RPCServer::pointer new_connection,
|
||||
}else cout << "Error: " << error;//BOOST_LOG_TRIVIAL(info) << "Error: " << error;
|
||||
|
||||
startListening();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user