From 72d40f13a40bc23e86cd163053547ea779ab1c06 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 22 Feb 2017 09:07:24 +0000 Subject: updates: use HTTP, not HTTPS The files are hashed and the hashes signed --- src/common/updates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/updates.cpp') diff --git a/src/common/updates.cpp b/src/common/updates.cpp index c84566f57..2140aeaa7 100644 --- a/src/common/updates.cpp +++ b/src/common/updates.cpp @@ -96,7 +96,7 @@ namespace tools std::string get_update_url(const std::string &software, const std::string &subdir, const std::string &buildtag, const std::string &version) { - static const char base[] = "https://updates.getmonero.org/"; + static const char base[] = "http://updates.getmonero.org/"; #ifdef _WIN32 static const char extension[] = ".zip"; #else -- cgit v1.2.3 From 6a5dfb88d2135b02898fec1a31bd47cd076f77ec Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 22 Feb 2017 10:28:01 +0000 Subject: updates: add all update servers --- src/common/updates.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common/updates.cpp') diff --git a/src/common/updates.cpp b/src/common/updates.cpp index 2140aeaa7..6e2001441 100644 --- a/src/common/updates.cpp +++ b/src/common/updates.cpp @@ -44,6 +44,10 @@ namespace tools // All four MoneroPulse domains have DNSSEC on and valid static const std::vector dns_urls = { + "updates.moneropulse.org", + "updates.moneropulse.net", + "updates.moneropulse.co", + "updates.moneropulse.se" }; static const std::vector testnet_dns_urls = { "testver.moneropulse.net" -- cgit v1.2.3 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 From 5901331669f7508362a1f8bd3603b344b5a8a0db Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 22 Feb 2017 11:19:20 +0000 Subject: updates: remove testnet case It need not be any different --- src/common/updates.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/common/updates.cpp') diff --git a/src/common/updates.cpp b/src/common/updates.cpp index 3fa985e24..8878bb062 100644 --- a/src/common/updates.cpp +++ b/src/common/updates.cpp @@ -35,7 +35,7 @@ namespace tools { - bool check_updates(const std::string &software, const std::string &buildtag, bool testnet, std::string &version, std::string &hash) + bool check_updates(const std::string &software, const std::string &buildtag, std::string &version, std::string &hash) { std::vector records; bool found = false; @@ -50,10 +50,7 @@ namespace tools "updates.moneropulse.se" }; - static const std::vector testnet_dns_urls = { "testver.moneropulse.net" - }; - - if (!tools::dns_utils::load_txt_records_from_dns(records, testnet ? testnet_dns_urls : dns_urls)) + if (!tools::dns_utils::load_txt_records_from_dns(records, dns_urls)) return false; for (const auto& record : records) -- cgit v1.2.3