From 822577eb422276bb5ec01adfc9cf705bb7c22b46 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 22 Feb 2017 11:11:45 +0000 Subject: updates: we now have a user URL, and an automatic one So the user can use https, while the automatic does not have to --- src/common/updates.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/updates.cpp') diff --git a/src/common/updates.cpp b/src/common/updates.cpp index 6e2001441..3fa985e24 100644 --- a/src/common/updates.cpp +++ b/src/common/updates.cpp @@ -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 -- cgit v1.2.3