mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 13:02:38 +02:00
Revert "Bugfix: httprpc: Allow a blank -rpcauth or -rpcauthfile to void all prior such options of its own kind"
This reverts commit cc6ca5d9797f334eb0b047f997fce5701c89429f.
This commit is contained in:
parent
d439d4a486
commit
53cbce26c1
@ -317,8 +317,6 @@ static bool InitRPCAuthentication()
|
||||
}
|
||||
if (!(gArgs.GetArgs("-rpcauth").empty() && gArgs.GetArgs("-rpcauthfile").empty())) {
|
||||
LogPrintf("Using rpcauth authentication.\n");
|
||||
}
|
||||
if (gArgs.GetArg("-rpcauth", "") != "") {
|
||||
for (const std::string& rpcauth : gArgs.GetArgs("-rpcauth")) {
|
||||
if (rpcauth.empty()) continue;
|
||||
std::vector<std::string> fields{SplitString(rpcauth, ':')};
|
||||
@ -332,8 +330,6 @@ static bool InitRPCAuthentication()
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (gArgs.GetArg("-rpcauthfile", "") != "") {
|
||||
for (const std::string& path : gArgs.GetArgs("-rpcauthfile")) {
|
||||
std::ifstream file;
|
||||
file.open(path);
|
||||
|
Loading…
Reference in New Issue
Block a user