Util: Small improvements in gArgs usage
- Don't check gArgs.IsArgSet() is greater than 0 - Remove unneeded calls and local variables
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ static bool multiUserAuthorized(std::string strUserPass)
|
||||
std::string strUser = strUserPass.substr(0, strUserPass.find(":"));
|
||||
std::string strPass = strUserPass.substr(strUserPass.find(":") + 1);
|
||||
|
||||
if (gArgs.IsArgSet("-rpcauth") > 0) {
|
||||
if (gArgs.IsArgSet("-rpcauth")) {
|
||||
//Search for multi-user login/pass "rpcauth" from config
|
||||
BOOST_FOREACH(std::string strRPCAuth, gArgs.GetArgs("-rpcauth"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user