Merge pull request #697 from SkynetLabs/ivo/update_server_list

Update the hardcoded list of servers for blocking skylinks.
This commit is contained in:
Ivaylo Novakov 2021-04-29 18:30:04 +02:00 committed by GitHub
commit 4c525afb0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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