mirror of
https://github.com/monero-project/monero.git
synced 2025-08-18 12:07:59 -04:00
Merge pull request #4054
24569454
epee: add SSL support (moneromooo-monero)
This commit is contained in:
commit
46fd181cca
25 changed files with 1065 additions and 239 deletions
|
@ -179,8 +179,8 @@ namespace tools
|
|||
|
||||
lock.unlock();
|
||||
|
||||
bool ssl = u_c.schema == "https";
|
||||
uint16_t port = u_c.port ? u_c.port : ssl ? 443 : 80;
|
||||
epee::net_utils::ssl_support_t ssl = u_c.schema == "https" ? epee::net_utils::ssl_support_t::e_ssl_support_enabled : epee::net_utils::ssl_support_t::e_ssl_support_disabled;
|
||||
uint16_t port = u_c.port ? u_c.port : ssl == epee::net_utils::ssl_support_t::e_ssl_support_enabled ? 443 : 80;
|
||||
MDEBUG("Connecting to " << u_c.host << ":" << port);
|
||||
client.set_server(u_c.host, std::to_string(port), boost::none, ssl);
|
||||
if (!client.connect(std::chrono::seconds(30)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue