aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-22 11:11:45 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-22 11:20:40 +0000
commit822577eb422276bb5ec01adfc9cf705bb7c22b46 (patch)
treeccc307350998978a15dab97bfa3539cc9b969a08 /src/cryptonote_core
parentupdates: s/monerod/monero/ for the main download (diff)
downloadmonero-822577eb422276bb5ec01adfc9cf705bb7c22b46.tar.xz
updates: we now have a user URL, and an automatic one
So the user can use https, while the automatic does not have to
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index a6b62f2ff..470c1feb3 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -1107,12 +1107,13 @@ namespace cryptonote
if (tools::vercmp(version.c_str(), MONERO_VERSION) <= 0)
return true;
- std::string url = tools::get_update_url(software, subdir, buildtag, version);
+ std::string url = tools::get_update_url(software, subdir, buildtag, version, true);
MGINFO("Version " << version << " of " << software << " for " << buildtag << " is available: " << url << ", SHA256 hash " << hash);
if (check_updates_level == UPDATES_NOTIFY)
return true;
+ url = tools::get_update_url(software, subdir, buildtag, version, false);
std::string filename;
const char *slash = strrchr(url.c_str(), '/');
if (slash)