mirror of
https://github.com/monero-project/monero.git
synced 2025-10-12 21:10:39 -04:00
Add server auth to monerod, and client auth to wallet-cli and wallet-rpc
This commit is contained in:
parent
e56bf442c3
commit
ce7fcbb4ae
38 changed files with 495 additions and 189 deletions
|
@ -1364,7 +1364,7 @@ bool WalletImpl::isNewWallet() const
|
|||
|
||||
bool WalletImpl::doInit(const string &daemon_address, uint64_t upper_transaction_size_limit)
|
||||
{
|
||||
if (!m_wallet->init(daemon_address, upper_transaction_size_limit))
|
||||
if (!m_wallet->init(daemon_address, boost::none, upper_transaction_size_limit))
|
||||
return false;
|
||||
|
||||
// in case new wallet, this will force fast-refresh (pulling hashes instead of blocks)
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace {
|
|||
bool connect_and_invoke(const std::string& address, const std::string& path, const Request& request, Response& response)
|
||||
{
|
||||
epee::net_utils::http::http_simple_client client{};
|
||||
return client.set_server(address) && epee::net_utils::invoke_http_json(path, request, response, client);
|
||||
return client.set_server(address, boost::none) && epee::net_utils::invoke_http_json(path, request, response, client);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue