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:
Luke Dashjr 2023-12-24 23:44:12 +00:00
parent d439d4a486
commit 53cbce26c1

View File

@ -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);