From a01884dcd0215cacf18ac2598d686ac11be7ec92 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Tue, 27 Apr 2021 11:13:41 +0200 Subject: [PATCH] Update the hardcoded list of servers for blocking skylinks. --- README.md | 1 - scripts/blocklist-skylink.sh | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c75abf5a..4f358bca 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,6 @@ Steps: There is some configuration that needs to be added to your `.env`file, namely: -1. CR_NODE - the name of your node 1. CR_IP - the public IP of your node 1. CR_CLUSTER_NODES - a list of IPs and ports which make up your cluster, e.g. `95.216.13.185:26257,147.135.37.21:26257,144.76.136.122:26257`. This will be the list of nodes that will make up your diff --git a/scripts/blocklist-skylink.sh b/scripts/blocklist-skylink.sh index 17e0ae66..c144fddf 100755 --- a/scripts/blocklist-skylink.sh +++ b/scripts/blocklist-skylink.sh @@ -7,7 +7,7 @@ if [ -z "$1" ]; then fi ######################################################### -# read either a file containing skylinks separated by new +# read either a file containing skylinks separated by new # lines or a single skylink and put them in an array ######################################################### skylinks=() @@ -32,7 +32,13 @@ fi ######################################################################### # iterate through all servers, block the skylinks and purge it from cache ######################################################################### -for server in "eu-ger-1.siasky.net" "eu-ger-2.siasky.net" "eu-fin-1.siasky.net" "us-or-1.siasky.net" "us-or-2.siasky.net" "us-va-1.siasky.net" "us-pa-1.siasky.net" "us-pa-2.siasky.net" "siasky.xyz"; +declare -a servers=( "eu-ger-1.siasky.net" "eu-ger-2.siasky.net" "eu-ger-3.siasky.net" "eu-ger-4.siasky.net" + "eu-fin-1.siasky.net" "eu-fin-2.siasky.net" + "us-or-1.siasky.net" "us-or-2.siasky.net" + "us-pa-1.siasky.net" "us-pa-2.siasky.net" + "us-va-1.siasky.net" + "siasky.xyz" "siasky.dev") +for server in "${servers[@]}"; do for skylink in "${skylinks[@]}"; do