mirror of
https://github.com/monero-project/monero.git
synced 2025-08-11 17:10:13 -04:00
updates: we now have a user URL, and an automatic one
So the user can use https, while the automatic does not have to
This commit is contained in:
parent
9f17b1a30f
commit
822577eb42
3 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue