mirror of
https://github.com/monero-project/monero.git
synced 2026-01-11 20:45:37 -08: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:
@@ -98,9 +98,9 @@ namespace tools
|
||||
return found;
|
||||
}
|
||||
|
||||
std::string get_update_url(const std::string &software, const std::string &subdir, const std::string &buildtag, const std::string &version)
|
||||
std::string get_update_url(const std::string &software, const std::string &subdir, const std::string &buildtag, const std::string &version, bool user)
|
||||
{
|
||||
static const char base[] = "http://updates.getmonero.org/";
|
||||
static const char *base = user ? "https://downloads.getmonero.org/" : "http://updates.getmonero.org/";
|
||||
#ifdef _WIN32
|
||||
static const char extension[] = ".zip";
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user