Skip to content

Commit dae0d13

Browse files
committed
RPCAuth Detection in Logs
This adds a log entry for when RPCAuth is used. Update httprpc.cpp
1 parent 3315007 commit dae0d13

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)