diff options
| author | Linrono <[email protected]> | 2018-04-29 17:54:20 -0400 |
|---|---|---|
| committer | Linrono <[email protected]> | 2018-05-16 23:37:13 -0400 |
| commit | dae0d13bbb710346a8f4c8ecdf96937283e470df (patch) | |
| tree | 0ad1f5e1afc83be2b0ee5618ed1ebeeafc3942a5 /src/httprpc.cpp | |
| parent | Merge #13077: Add compile time checking for all cs_KeyStore runtime locking a... (diff) | |
| download | discoin-dae0d13bbb710346a8f4c8ecdf96937283e470df.tar.xz discoin-dae0d13bbb710346a8f4c8ecdf96937283e470df.zip | |
RPCAuth Detection in Logs
This adds a log entry for when RPCAuth is used.
Update httprpc.cpp
Diffstat (limited to 'src/httprpc.cpp')
| -rw-r--r-- | src/httprpc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp index de2437943..c49ad1228 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -215,7 +215,7 @@ static bool InitRPCAuthentication() { 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)) { uiInterface.ThreadSafeMessageBox( _("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"); strRPCUserColonPass = gArgs.GetArg("-rpcuser", "") + ":" + gArgs.GetArg("-rpcpassword", ""); } + if (gArgs.GetArg("-rpcauth","") != "") + { + LogPrintf("Using rpcauth authentication.\n"); + } return true; } |