mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 21:03:28 +01:00
Fix configuration bug; wallet2 --daemon-ssl-allow-any-cert now works.
This commit is contained in:
parent
e8487fa46b
commit
c9aaccf346
@ -399,8 +399,11 @@ std::unique_ptr<tools::wallet2> make_basic(const boost::program_options::variabl
|
|||||||
{
|
{
|
||||||
const boost::string_ref real_daemon = boost::string_ref{daemon_address}.substr(0, daemon_address.rfind(':'));
|
const boost::string_ref real_daemon = boost::string_ref{daemon_address}.substr(0, daemon_address.rfind(':'));
|
||||||
|
|
||||||
|
/* If SSL or proxy is enabled, then a specific cert, CA or fingerprint must
|
||||||
|
be specified. This is specific to the wallet. */
|
||||||
const bool verification_required =
|
const bool verification_required =
|
||||||
ssl_options.support == epee::net_utils::ssl_support_t::e_ssl_support_enabled || use_proxy;
|
ssl_options.verification != epee::net_utils::ssl_verification_t::none &&
|
||||||
|
(ssl_options.support == epee::net_utils::ssl_support_t::e_ssl_support_enabled || use_proxy);
|
||||||
|
|
||||||
THROW_WALLET_EXCEPTION_IF(
|
THROW_WALLET_EXCEPTION_IF(
|
||||||
verification_required && !ssl_options.has_strong_verification(real_daemon),
|
verification_required && !ssl_options.has_strong_verification(real_daemon),
|
||||||
|
Loading…
Reference in New Issue
Block a user