mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-21 17:42:37 +02:00
httprpc: Optimise -rpcauthfile loading slightly
This commit is contained in:
parent
5ad22180f6
commit
d439d4a486
@ -334,7 +334,7 @@ static bool InitRPCAuthentication()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (gArgs.GetArg("-rpcauthfile", "") != "") {
|
if (gArgs.GetArg("-rpcauthfile", "") != "") {
|
||||||
for (std::string path : gArgs.GetArgs("-rpcauthfile")) {
|
for (const std::string& path : gArgs.GetArgs("-rpcauthfile")) {
|
||||||
std::ifstream file;
|
std::ifstream file;
|
||||||
file.open(path);
|
file.open(path);
|
||||||
if (!file.is_open()) continue;
|
if (!file.is_open()) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user