mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge #292: callrpc: Check correct mainchainrpc field
add80bb callrpc: Check correct mainchainrpc field (Gregory Sanders)
This commit is contained in:
commit
0c0c17fc50
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ UniValue CallRPC(const std::string& strMethod, const UniValue& params, bool conn
|
|||
|
||||
// Get credentials
|
||||
std::string strRPCUserColonPass;
|
||||
if (GetArg("-rpcpassword", "") == "") {
|
||||
if (GetArg(strpassword, "") == "") {
|
||||
|
||||
// Try fall back to cookie-based authentication if no password is provided
|
||||
if (!connectToMainchain && !GetAuthCookie(&strRPCUserColonPass)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue