From 53cbce26c1e4a35fe521a56e28ef8db045807ae0 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sun, 24 Dec 2023 23:44:12 +0000 Subject: [PATCH] Revert "Bugfix: httprpc: Allow a blank -rpcauth or -rpcauthfile to void all prior such options of its own kind" This reverts commit cc6ca5d9797f334eb0b047f997fce5701c89429f. --- src/httprpc.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/httprpc.cpp b/src/httprpc.cpp index c010ea479a..d666d5881d 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -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 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);