diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-03-04 21:17:21 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-03-04 21:17:21 +0200 |
commit | 46fd181ccaadbd677022832609e0bb19e03b6726 (patch) | |
tree | 4beb8d6909846bb67248ee1c0a3abc2361cdf2d8 /src/common | |
parent | Merge pull request #5224 (diff) | |
parent | epee: add SSL support (diff) | |
download | monero-46fd181ccaadbd677022832609e0bb19e03b6726.tar.xz |
Merge pull request #4054
24569454 epee: add SSL support (moneromooo-monero)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/download.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/download.cpp b/src/common/download.cpp index 58ce0595f..7c38cfa5b 100644 --- a/src/common/download.cpp +++ b/src/common/download.cpp @@ -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))) |