diff options
| author | Matt Corallo <[email protected]> | 2016-11-29 18:45:24 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-12-24 11:29:33 -0500 |
| commit | 4cd373aea8d20356727f7d65e0bc818beb6523dc (patch) | |
| tree | 945990959f03be82089270427a7595431459942b /src/httprpc.cpp | |
| parent | Get rid of mapArgs direct access in ZMQ construction (diff) | |
| download | discoin-4cd373aea8d20356727f7d65e0bc818beb6523dc.tar.xz discoin-4cd373aea8d20356727f7d65e0bc818beb6523dc.zip | |
Un-expose mapArgs from utils.h
Diffstat (limited to 'src/httprpc.cpp')
| -rw-r--r-- | src/httprpc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp index 049a3f19a..970ce2db7 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -215,7 +215,7 @@ static bool HTTPReq_JSONRPC(HTTPRequest* req, const std::string &) static bool InitRPCAuthentication() { - if (mapArgs["-rpcpassword"] == "") + if (GetArg("-rpcpassword", "") == "") { LogPrintf("No rpcpassword set - using random cookie authentication\n"); if (!GenerateAuthCookie(&strRPCUserColonPass)) { @@ -226,7 +226,7 @@ static bool InitRPCAuthentication() } } else { LogPrintf("Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcuser for rpcauth auth generation.\n"); - strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"]; + strRPCUserColonPass = GetArg("-rpcuser", "") + ":" + GetArg("-rpcpassword", ""); } return true; } |