wallet_api: enable set_strict_default_file_permissions

This commit is contained in:
tobtoht 2021-10-22 05:38:32 +02:00 committed by selsta
parent 753dc901a1
commit 47e7a43270
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
2 changed files with 6 additions and 1 deletions

View File

@ -49,6 +49,11 @@ namespace epee {
namespace Monero { namespace Monero {
WalletManagerImpl::WalletManagerImpl()
{
tools::set_strict_default_file_permissions(true);
}
Wallet *WalletManagerImpl::createWallet(const std::string &path, const std::string &password, Wallet *WalletManagerImpl::createWallet(const std::string &path, const std::string &password,
const std::string &language, NetworkType nettype, uint64_t kdf_rounds) const std::string &language, NetworkType nettype, uint64_t kdf_rounds)
{ {

View File

@ -95,7 +95,7 @@ public:
bool setProxy(const std::string &address) override; bool setProxy(const std::string &address) override;
private: private:
WalletManagerImpl() {} WalletManagerImpl();
friend struct WalletManagerFactory; friend struct WalletManagerFactory;
net::http::client m_http_client; net::http::client m_http_client;
std::string m_errorString; std::string m_errorString;