mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
block some RPC commands from being used remotely
This commit is contained in:
@@ -22,6 +22,7 @@ public:
|
||||
|
||||
// Misc failure
|
||||
rpcLOAD_FAILED,
|
||||
rpcNO_PERMISSION,
|
||||
|
||||
// Networking
|
||||
rpcNO_CLOSED,
|
||||
@@ -87,6 +88,9 @@ private:
|
||||
HttpRequest mIncomingRequest;
|
||||
HttpRequestParser mRequestParser;
|
||||
|
||||
enum { GUEST, USER, ADMIN };
|
||||
int mRole;
|
||||
|
||||
RPCServer(boost::asio::io_service& io_service, NetworkOPs* nopNetwork);
|
||||
|
||||
RPCServer(const RPCServer&); // no implementation
|
||||
@@ -159,6 +163,8 @@ private:
|
||||
Json::Value doWalletUnlock(Json::Value& params);
|
||||
Json::Value doWalletVerify(Json::Value& params);
|
||||
|
||||
Json::Value doLogin(Json::Value& params);
|
||||
|
||||
public:
|
||||
typedef boost::shared_ptr<RPCServer> pointer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user