From 4d862597fd47cd17e663d557d3f3a34998033cf6 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 5 Nov 2018 00:04:29 +0100 Subject: [PATCH] fix(ci): switch fallback download to public gateway This change stops the abuse of preload servers :-) --- scripts/fetch-webui-from-gateway.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/fetch-webui-from-gateway.js b/scripts/fetch-webui-from-gateway.js index 4fc54be99..a9d6f0138 100755 --- a/scripts/fetch-webui-from-gateway.js +++ b/scripts/fetch-webui-from-gateway.js @@ -9,8 +9,11 @@ const cid = process.argv[2] const destination = process.argv[3] // pick random preloader -const no = Math.round(Math.random()) // 0 or 1 -const url = 'https://node' + no + '.preload.ipfs.io/api/v0/get?arg=' + cid + '&archive=true&compress=true' +// const no = Math.round(Math.random()) // 0 or 1 +// const url = 'https://node' + no + '.preload.ipfs.io/api/v0/get?arg=' + cid + '&archive=true&compress=true' + +// use public gw +const url = 'https://ipfs.io/api/v0/get?arg=' + cid + '&archive=true&compress=true' console.log('Fallback to HTTP GET from: ' + url)