diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-07-10 16:18:40 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-07-10 16:19:30 +0200 |
| commit | c05c93c5d8f531cf2bcf0aa2b36223635c7894b4 (patch) | |
| tree | d5b78b2473801a0e4cace8133a3f6364036eedd4 /src/httprpc.cpp | |
| parent | Merge #13543: depends: Add RISC-V support (diff) | |
| parent | RPCAuth Detection in Logs (diff) | |
| download | discoin-c05c93c5d8f531cf2bcf0aa2b36223635c7894b4.tar.xz discoin-c05c93c5d8f531cf2bcf0aa2b36223635c7894b4.zip | |
Merge #13118: RPCAuth Detection in Logs
dae0d13bbb710346a8f4c8ecdf96937283e470df 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
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; } |