add RPC_ALLOW_REMOTE connections flag

This commit is contained in:
jed
2012-06-06 07:10:30 -07:00
parent 6559655218
commit a79c78111e
7 changed files with 13 additions and 9 deletions

View File

@@ -27,6 +27,7 @@ void RPCDoor::startListening()
bool RPCDoor::isClientAllowed(const std::string& ip)
{
if(theConfig.RPC_ALLOW_REMOTE) return(true);
if(ip=="127.0.0.1") return(true);
return(false);
}