aboutsummaryrefslogtreecommitdiff
path: root/src/common
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/common
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 '')
-rw-r--r--src/common/updates.cpp4
-rw-r--r--src/common/updates.h2
2 files changed, 3 insertions, 3 deletions
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
diff --git a/src/common/updates.h b/src/common/updates.h
index 1a70e06fd..d84b612df 100644
--- a/src/common/updates.h
+++ b/src/common/updates.h
@@ -33,5 +33,5 @@
namespace tools
{
bool check_updates(const std::string &software, const std::string &buildtag, bool bestnet, std::string &version, std::string &hash);
- 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);
}