RPCAuth Detection in Logs
This adds a log entry for when RPCAuth is used. Update httprpc.cpp
This commit is contained in:
1 parent
3315007e03
commit
dae0d13bbb
1 file changed
+5
-1
+5
-1
@@ -215,7 +215,7 @@ static bool InitRPCAuthentication()
|
|||||||
{
|
{
|
||||||
if (gArgs.GetArg("-rpcpassword", "") == "")
|
if (gArgs.GetArg("-rpcpassword", "") == "")
|
||||||
{
|
{
|
||||||
LogPrintf("No rpcpassword set - using random cookie authentication\n");
|
LogPrintf("No rpcpassword set - using random cookie authentication.\n");
|
||||||
if (!GenerateAuthCookie(&strRPCUserColonPass)) {
|
if (!GenerateAuthCookie(&strRPCUserColonPass)) {
|
||||||
uiInterface.ThreadSafeMessageBox(
|
uiInterface.ThreadSafeMessageBox(
|
||||||
_("Error: A fatal internal error occurred, see debug.log for details"), // Same message as AbortNode
|
_("Error: A fatal internal error occurred, see debug.log for details"), // Same message as AbortNode
|
||||||
@@ -226,6 +226,10 @@ static bool InitRPCAuthentication()
|
|||||||
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");
|
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");
|
||||||
strRPCUserColonPass = gArgs.GetArg("-rpcuser", "") + ":" + gArgs.GetArg("-rpcpassword", "");
|
strRPCUserColonPass = gArgs.GetArg("-rpcuser", "") + ":" + gArgs.GetArg("-rpcpassword", "");
|
||||||
}
|
}
|
||||||
|
if (gArgs.GetArg("-rpcauth","") != "")
|
||||||
|
{
|
||||||
|
LogPrintf("Using rpcauth authentication.\n");
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user