summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tails-download-and-verify/lib/downloader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tails-download-and-verify/lib/downloader.js b/tails-download-and-verify/lib/downloader.js
index bb88b10..f9ee529 100644
--- a/tails-download-and-verify/lib/downloader.js
+++ b/tails-download-and-verify/lib/downloader.js
@@ -151,7 +151,7 @@ function compareUrlToMirrors(testurl, mirrors, url_suffix=blob.url_suffix) {
console.log("Tested URL to compare against mirrors: " + testurl);
for (let m_url = 0; m_url < mirrors.length; m_url++) {
console.log("Mirror URL to compare against " + mirrors.mirrors[m_url].url_prefix + url_suffix);
- if (mirrors.mirrors[m_url].url_prefix + url_suffix == testurl) {
+ if (mirrors.mirrors[m_url].url_prefix + url_suffix == testurl && mirrors.mirrors[m_url].weight > 0) {
console.log("Download URL corresponds to a known mirror URL: " + mirrors.mirrors[m_url].url_prefix);
return m_url; // just return the index.
}