mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-04 00:12:33 +02:00
httprpc: Optimise -rpcauthfile loading slightly
This commit is contained in:
parent
004e3f8cee
commit
541f7284c0
@ -269,7 +269,7 @@ static bool InitRPCAuthentication()
|
||||
}
|
||||
}
|
||||
if (gArgs.GetArg("-rpcauthfile", "") != "") {
|
||||
for (std::string path : gArgs.GetArgs("-rpcauthfile")) {
|
||||
for (const std::string& path : gArgs.GetArgs("-rpcauthfile")) {
|
||||
std::ifstream file;
|
||||
file.open(path);
|
||||
if (!file.is_open()) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user