Skip to content

Commit c05c93c

Browse files
committed
Merge #13118: RPCAuth Detection in Logs
dae0d13 RPCAuth Detection in Logs (Linrono) Pull request description: This adds a log entry for when RPCAuth is detected. This keeps everything working as it currently is. I suppose it could be added as a nested if to also stop the creation of the cookie file if this would be wanted. Tree-SHA512: 61a893b2e06ae5e7db2ddedc63819d34047fad0df764184b1b2b3f49016581e6bbf2c94a59374ca2c300190cd4e827f01da286aad5a4cc8fe5140e258b1cf8c4
2 parents 6c6a300 + dae0d13 commit c05c93c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/httprpc.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static bool InitRPCAuthentication()
215215
{
216216
if (gArgs.GetArg("-rpcpassword", "") == "")
217217
{
218-
LogPrintf("No rpcpassword set - using random cookie authentication\n");
218+
LogPrintf("No rpcpassword set - using random cookie authentication.\n");
219219
if (!GenerateAuthCookie(&strRPCUserColonPass)) {
220220
uiInterface.ThreadSafeMessageBox(
221221
_("Error: A fatal internal error occurred, see debug.log for details"), // Same message as AbortNode
@@ -226,6 +226,10 @@ static bool InitRPCAuthentication()
226226
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");
227227
strRPCUserColonPass = gArgs.GetArg("-rpcuser", "") + ":" + gArgs.GetArg("-rpcpassword", "");
228228
}
229+
if (gArgs.GetArg("-rpcauth","") != "")
230+
{
231+
LogPrintf("Using rpcauth authentication.\n");
232+
}
229233
return true;
230234
}
231235

0 commit comments

Comments
 (0)