diff --git a/find_best_cdn_ip.sh b/find_best_cdn_ip.sh index aab2ff2..5b53f61 100755 --- a/find_best_cdn_ip.sh +++ b/find_best_cdn_ip.sh @@ -67,7 +67,7 @@ init(){ if [[ "${selectType}" = "1" ]] then ip=('108.162.236.0' '108.162.236.1' '108.162.236.2' '108.162.236.3' '108.162.236.4' '108.162.236.5' '108.162.236.6' '108.162.236.7' '108.162.236.8' '108.162.236.9' '108.162.236.10' '108.162.236.11' '108.162.236.12' '108.162.236.13' '108.162.236.14' '108.162.236.15' '108.162.236.16' '108.162.236.17' '108.162.236.18' '108.162.236.19' '108.162.236.20' '108.162.236.21' '108.162.236.22' '108.162.236.23' '108.162.236.24' '108.162.236.25' '108.162.236.26' '108.162.236.27' '108.162.236.28' '108.162.236.29' '108.162.236.30' '108.162.236.31' '108.162.236.32' '108.162.236.33' '108.162.236.34' '108.162.236.35' '108.162.236.36' '108.162.236.37' '108.162.236.38' '108.162.236.39' '108.162.236.40' '108.162.236.41' '108.162.236.42' '108.162.236.43' '108.162.236.44' '108.162.236.45' '108.162.236.46' '108.162.236.47' '108.162.236.48' '108.162.236.49' '108.162.236.50' '108.162.236.51' '108.162.236.52' '108.162.236.53' '108.162.236.54' '108.162.236.55' '108.162.236.56' '108.162.236.57' '108.162.236.58' '108.162.236.59' '108.162.236.60' '108.162.236.61' '108.162.236.62' '108.162.236.63' '108.162.236.64' '108.162.236.65' '108.162.236.66' '108.162.236.67' '108.162.236.68' '108.162.236.69' '108.162.236.70' '108.162.236.71' '108.162.236.72' '108.162.236.73' '108.162.236.74' '108.162.236.75' '108.162.236.76' '108.162.236.77' '108.162.236.78' '108.162.236.79' '108.162.236.80' '108.162.236.81' '108.162.236.82' '108.162.236.83' '108.162.236.84' '108.162.236.85' '108.162.236.86' '108.162.236.87' '108.162.236.88' '108.162.236.89' '108.162.236.90' '108.162.236.91' '108.162.236.92' '108.162.236.93' '108.162.236.94' '108.162.236.95' '108.162.236.96' '108.162.236.97' '108.162.236.98' '108.162.236.99' '108.162.236.100' '108.162.236.101' '108.162.236.102' '108.162.236.103' '108.162.236.104' '108.162.236.105' '108.162.236.106' '108.162.236.107' '108.162.236.108' '108.162.236.109' '108.162.236.110' '108.162.236.111' '108.162.236.112' '108.162.236.113' '108.162.236.114' '108.162.236.115' '108.162.236.116' '108.162.236.117' '108.162.236.118' '108.162.236.119' '108.162.236.120' '108.162.236.121' '108.162.236.122' '108.162.236.123' '108.162.236.124' '108.162.236.125' '108.162.236.126' '108.162.236.127' '108.162.236.128' '108.162.236.129' '108.162.236.130' '108.162.236.131' '108.162.236.132' '108.162.236.133' '108.162.236.134' '108.162.236.135' '108.162.236.136' '108.162.236.137' '108.162.236.138' '108.162.236.139' '108.162.236.140' '108.162.236.141' '108.162.236.142' '108.162.236.143' '108.162.236.144' '108.162.236.145' '108.162.236.146' '108.162.236.147' '108.162.236.148' '108.162.236.149' '108.162.236.150' '108.162.236.151' '108.162.236.152' '108.162.236.153' '108.162.236.154' '108.162.236.155' '108.162.236.156' '108.162.236.157' '108.162.236.158' '108.162.236.159' '108.162.236.160' '108.162.236.161' '108.162.236.162' '108.162.236.163' '108.162.236.164' '108.162.236.165' '108.162.236.166' '108.162.236.167' '108.162.236.168' '108.162.236.169' '108.162.236.170' '108.162.236.171' '108.162.236.172' '108.162.236.173' '108.162.236.174' '108.162.236.175' '108.162.236.176' '108.162.236.177' '108.162.236.178' '108.162.236.179' '108.162.236.180' '108.162.236.181' '108.162.236.182' '108.162.236.183' '108.162.236.184' '108.162.236.185' '108.162.236.186' '108.162.236.187' '108.162.236.188' '108.162.236.189' '108.162.236.190' '108.162.236.191' '108.162.236.192' '108.162.236.193' '108.162.236.194' '108.162.236.195' '108.162.236.196' '108.162.236.197' '108.162.236.198' '108.162.236.199' '108.162.236.200' '108.162.236.201' '108.162.236.202' '108.162.236.203' '108.162.236.204' '108.162.236.205' '108.162.236.206' '108.162.236.207' '108.162.236.208' '108.162.236.209' '108.162.236.210' '108.162.236.211' '108.162.236.212' '108.162.236.213' '108.162.236.214' '108.162.236.215' '108.162.236.216' '108.162.236.217' '108.162.236.218' '108.162.236.219' '108.162.236.220' '108.162.236.221' '108.162.236.222' '108.162.236.223' '108.162.236.224' '108.162.236.225' '108.162.236.226' '108.162.236.227' '108.162.236.228' '108.162.236.229' '108.162.236.230' '108.162.236.231' '108.162.236.232' '108.162.236.233' '108.162.236.234' '108.162.236.235' '108.162.236.236' '108.162.236.237' '108.162.236.238' '108.162.236.239' '108.162.236.240' '108.162.236.241' '108.162.236.242' '108.162.236.243' '108.162.236.244' '108.162.236.245' '108.162.236.246' '108.162.236.247' '108.162.236.248' '108.162.236.249' '108.162.236.250' '108.162.236.251' '108.162.236.252' '108.162.236.253' '108.162.236.254' '104.16.160.0' '104.16.160.1' '104.16.160.2' '104.16.160.3' '104.16.160.4' '104.16.160.5' '104.16.160.6' '104.16.160.7' '104.16.160.8' '104.16.160.9' '104.16.160.10' '104.16.160.11' '104.16.160.12' '104.16.160.13' '104.16.160.14' '104.16.160.15' '104.16.160.16' '104.16.160.17' '104.16.160.18' '104.16.160.19' '104.16.160.20' '104.16.160.21' '104.16.160.22' '104.16.160.23' '104.16.160.24' '104.16.160.25' '104.16.160.26' '104.16.160.27' '104.16.160.28' '104.16.160.29' '104.16.160.30' '104.16.160.31' '104.16.160.32' '104.16.160.33' '104.16.160.34' '104.16.160.35' '104.16.160.36' '104.16.160.37' '104.16.160.38' '104.16.160.39' '104.16.160.40' '104.16.160.41' '104.16.160.42' '104.16.160.43' '104.16.160.44' '104.16.160.45' '104.16.160.46' '104.16.160.47' '104.16.160.48' '104.16.160.49' '104.16.160.50' '104.16.160.51' '104.16.160.52' '104.16.160.53' '104.16.160.54' '104.16.160.55' '104.16.160.56' '104.16.160.57' '104.16.160.58' '104.16.160.59' '104.16.160.60' '104.16.160.61' '104.16.160.62' '104.16.160.63' '104.16.160.64' '104.16.160.65' '104.16.160.66' '104.16.160.67' '104.16.160.68' '104.16.160.69' '104.16.160.70' '104.16.160.71' '104.16.160.72' '104.16.160.73' '104.16.160.74' '104.16.160.75' '104.16.160.76' '104.16.160.77' '104.16.160.78' '104.16.160.79' '104.16.160.80' '104.16.160.81' '104.16.160.82' '104.16.160.83' '104.16.160.84' '104.16.160.85' '104.16.160.86' '104.16.160.87' '104.16.160.88' '104.16.160.89' '104.16.160.90' '104.16.160.91' '104.16.160.92' '104.16.160.93' '104.16.160.94' '104.16.160.95' '104.16.160.96' '104.16.160.97' '104.16.160.98' '104.16.160.99' '104.16.160.100' '104.16.160.101' '104.16.160.102' '104.16.160.103' '104.16.160.104' '104.16.160.105' '104.16.160.106' '104.16.160.107' '104.16.160.108' '104.16.160.109' '104.16.160.110' '104.16.160.111' '104.16.160.112' '104.16.160.113' '104.16.160.114' '104.16.160.115' '104.16.160.116' '104.16.160.117' '104.16.160.118' '104.16.160.119' '104.16.160.120' '104.16.160.121' '104.16.160.122' '104.16.160.123' '104.16.160.124' '104.16.160.125' '104.16.160.126' '104.16.160.127' '104.16.160.128' '104.16.160.129' '104.16.160.130' '104.16.160.131' '104.16.160.132' '104.16.160.133' '104.16.160.134' '104.16.160.135' '104.16.160.136' '104.16.160.137' '104.16.160.138' '104.16.160.139' '104.16.160.140' '104.16.160.141' '104.16.160.142' '104.16.160.143' '104.16.160.144' '104.16.160.145' '104.16.160.146' '104.16.160.147' '104.16.160.148' '104.16.160.149' '104.16.160.150' '104.16.160.151' '104.16.160.152' '104.16.160.153' '104.16.160.154' '104.16.160.155' '104.16.160.156' '104.16.160.157' '104.16.160.158' '104.16.160.159' '104.16.160.160' '104.16.160.161' '104.16.160.162' '104.16.160.163' '104.16.160.164' '104.16.160.165' '104.16.160.166' '104.16.160.167' '104.16.160.168' '104.16.160.169' '104.16.160.170' '104.16.160.171' '104.16.160.172' '104.16.160.173' '104.16.160.174' '104.16.160.175' '104.16.160.176' '104.16.160.177' '104.16.160.178' '104.16.160.179' '104.16.160.180' '104.16.160.181' '104.16.160.182' '104.16.160.183' '104.16.160.184' '104.16.160.185' '104.16.160.186' '104.16.160.187' '104.16.160.188' '104.16.160.189' '104.16.160.190' '104.16.160.191' '104.16.160.192' '104.16.160.193' '104.16.160.194' '104.16.160.195' '104.16.160.196' '104.16.160.197' '104.16.160.198' '104.16.160.199' '104.16.160.200' '104.16.160.201' '104.16.160.202' '104.16.160.203' '104.16.160.204' '104.16.160.205' '104.16.160.206' '104.16.160.207' '104.16.160.208' '104.16.160.209' '104.16.160.210' '104.16.160.211' '104.16.160.212' '104.16.160.213' '104.16.160.214' '104.16.160.215' '104.16.160.216' '104.16.160.217' '104.16.160.218' '104.16.160.219' '104.16.160.220' '104.16.160.221' '104.16.160.222' '104.16.160.223' '104.16.160.224' '104.16.160.225' '104.16.160.226' '104.16.160.227' '104.16.160.228' '104.16.160.229' '104.16.160.230' '104.16.160.231' '104.16.160.232' '104.16.160.233' '104.16.160.234' '104.16.160.235' '104.16.160.236' '104.16.160.237' '104.16.160.238' '104.16.160.239' '104.16.160.240' '104.16.160.241' '104.16.160.242' '104.16.160.243' '104.16.160.244' '104.16.160.245' '104.16.160.246' '104.16.160.247' '104.16.160.248' '104.16.160.249' '104.16.160.250' '104.16.160.251' '104.16.160.252' '104.16.160.253' '104.16.160.254') - elif [["${selectType}" = "2"]] + elif [[ "${selectType}" = "2" ]] then ip=('104.16.160.0' '104.16.160.1' '104.16.160.2' '104.16.160.3' '104.16.160.4' '104.16.160.5' '104.16.160.6' '104.16.160.7' '104.16.160.8' '104.16.160.9' '104.16.160.10' '104.16.160.11' '104.16.160.12' '104.16.160.13' '104.16.160.14' '104.16.160.15' '104.16.160.16' '104.16.160.17' '104.16.160.18' '104.16.160.19' '104.16.160.20' '104.16.160.21' '104.16.160.22' '104.16.160.23' '104.16.160.24' '104.16.160.25' '104.16.160.26' '104.16.160.27' '104.16.160.28' '104.16.160.29' '104.16.160.30' '104.16.160.31' '104.16.160.32' '104.16.160.33' '104.16.160.34' '104.16.160.35' '104.16.160.36' '104.16.160.37' '104.16.160.38' '104.16.160.39' '104.16.160.40' '104.16.160.41' '104.16.160.42' '104.16.160.43' '104.16.160.44' '104.16.160.45' '104.16.160.46' '104.16.160.47' '104.16.160.48' '104.16.160.49' '104.16.160.50' '104.16.160.51' '104.16.160.52' '104.16.160.53' '104.16.160.54' '104.16.160.55' '104.16.160.56' '104.16.160.57' '104.16.160.58' '104.16.160.59' '104.16.160.60' '104.16.160.61' '104.16.160.62' '104.16.160.63' '104.16.160.64' '104.16.160.65' '104.16.160.66' '104.16.160.67' '104.16.160.68' '104.16.160.69' '104.16.160.70' '104.16.160.71' '104.16.160.72' '104.16.160.73' '104.16.160.74' '104.16.160.75' '104.16.160.76' '104.16.160.77' '104.16.160.78' '104.16.160.79' '104.16.160.80' '104.16.160.81' '104.16.160.82' '104.16.160.83' '104.16.160.84' '104.16.160.85' '104.16.160.86' '104.16.160.87' '104.16.160.88' '104.16.160.89' '104.16.160.90' '104.16.160.91' '104.16.160.92' '104.16.160.93' '104.16.160.94' '104.16.160.95' '104.16.160.96' '104.16.160.97' '104.16.160.98' '104.16.160.99' '104.16.160.100' '104.16.160.101' '104.16.160.102' '104.16.160.103' '104.16.160.104' '104.16.160.105' '104.16.160.106' '104.16.160.107' '104.16.160.108' '104.16.160.109' '104.16.160.110' '104.16.160.111' '104.16.160.112' '104.16.160.113' '104.16.160.114' '104.16.160.115' '104.16.160.116' '104.16.160.117' '104.16.160.118' '104.16.160.119' '104.16.160.120' '104.16.160.121' '104.16.160.122' '104.16.160.123' '104.16.160.124' '104.16.160.125' '104.16.160.126' '104.16.160.127' '104.16.160.128' '104.16.160.129' '104.16.160.130' '104.16.160.131' '104.16.160.132' '104.16.160.133' '104.16.160.134' '104.16.160.135' '104.16.160.136' '104.16.160.137' '104.16.160.138' '104.16.160.139' '104.16.160.140' '104.16.160.141' '104.16.160.142' '104.16.160.143' '104.16.160.144' '104.16.160.145' '104.16.160.146' '104.16.160.147' '104.16.160.148' '104.16.160.149' '104.16.160.150' '104.16.160.151' '104.16.160.152' '104.16.160.153' '104.16.160.154' '104.16.160.155' '104.16.160.156' '104.16.160.157' '104.16.160.158' '104.16.160.159' '104.16.160.160' '104.16.160.161' '104.16.160.162' '104.16.160.163' '104.16.160.164' '104.16.160.165' '104.16.160.166' '104.16.160.167' '104.16.160.168' '104.16.160.169' '104.16.160.170' '104.16.160.171' '104.16.160.172' '104.16.160.173' '104.16.160.174' '104.16.160.175' '104.16.160.176' '104.16.160.177' '104.16.160.178' '104.16.160.179' '104.16.160.180' '104.16.160.181' '104.16.160.182' '104.16.160.183' '104.16.160.184' '104.16.160.185' '104.16.160.186' '104.16.160.187' '104.16.160.188' '104.16.160.189' '104.16.160.190' '104.16.160.191' '104.16.160.192' '104.16.160.193' '104.16.160.194' '104.16.160.195' '104.16.160.196' '104.16.160.197' '104.16.160.198' '104.16.160.199' '104.16.160.200' '104.16.160.201' '104.16.160.202' '104.16.160.203' '104.16.160.204' '104.16.160.205' '104.16.160.206' '104.16.160.207' '104.16.160.208' '104.16.160.209' '104.16.160.210' '104.16.160.211' '104.16.160.212' '104.16.160.213' '104.16.160.214' '104.16.160.215' '104.16.160.216' '104.16.160.217' '104.16.160.218' '104.16.160.219' '104.16.160.220' '104.16.160.221' '104.16.160.222' '104.16.160.223' '104.16.160.224' '104.16.160.225' '104.16.160.226' '104.16.160.227' '104.16.160.228' '104.16.160.229' '104.16.160.230' '104.16.160.231' '104.16.160.232' '104.16.160.233' '104.16.160.234' '104.16.160.235' '104.16.160.236' '104.16.160.237' '104.16.160.238' '104.16.160.239' '104.16.160.240' '104.16.160.241' '104.16.160.242' '104.16.160.243' '104.16.160.244' '104.16.160.245' '104.16.160.246' '104.16.160.247' '104.16.160.248' '104.16.160.249' '104.16.160.250' '104.16.160.251' '104.16.160.252' '104.16.160.253' '104.16.160.254' '162.159.208.0' '162.159.208.1' '162.159.208.2' '162.159.208.3' '162.159.208.4' '162.159.208.5' '162.159.208.6' '162.159.208.7' '162.159.208.8' '162.159.208.9' '162.159.208.10' '162.159.208.11' '162.159.208.12' '162.159.208.13' '162.159.208.14' '162.159.208.15' '162.159.208.16' '162.159.208.17' '162.159.208.18' '162.159.208.19' '162.159.208.20' '162.159.208.21' '162.159.208.22' '162.159.208.23' '162.159.208.24' '162.159.208.25' '162.159.208.26' '162.159.208.27' '162.159.208.28' '162.159.208.29' '162.159.208.30' '162.159.208.31' '162.159.208.32' '162.159.208.33' '162.159.208.34' '162.159.208.35' '162.159.208.36' '162.159.208.37' '162.159.208.38' '162.159.208.39' '162.159.208.40' '162.159.208.41' '162.159.208.42' '162.159.208.43' '162.159.208.44' '162.159.208.45' '162.159.208.46' '162.159.208.47' '162.159.208.48' '162.159.208.49' '162.159.208.50' '162.159.208.51' '162.159.208.52' '162.159.208.53' '162.159.208.54' '162.159.208.55' '162.159.208.56' '162.159.208.57' '162.159.208.58' '162.159.208.59' '162.159.208.60' '162.159.208.61' '162.159.208.62' '162.159.208.63' '162.159.208.64' '162.159.208.65' '162.159.208.66' '162.159.208.67' '162.159.208.68' '162.159.208.69' '162.159.208.70' '162.159.208.71' '162.159.208.72' '162.159.208.73' '162.159.208.74' '162.159.208.75' '162.159.208.76' '162.159.208.77' '162.159.208.78' '162.159.208.79' '162.159.208.80' '162.159.208.81' '162.159.208.82' '162.159.208.83' '162.159.208.84' '162.159.208.85' '162.159.208.86' '162.159.208.87' '162.159.208.88' '162.159.208.89' '162.159.208.90' '162.159.208.91' '162.159.208.92' '162.159.208.93' '162.159.208.94' '162.159.208.95' '162.159.208.96' '162.159.208.97' '162.159.208.98' '162.159.208.99' '162.159.208.100' '162.159.208.101' '162.159.208.102' '162.159.208.103' '162.159.208.104' '162.159.208.105' '162.159.208.106' '162.159.208.107' '162.159.208.108' '162.159.208.109' '162.159.208.110' '162.159.208.111' '162.159.208.112' '162.159.208.113' '162.159.208.114' '162.159.208.115' '162.159.208.116' '162.159.208.117' '162.159.208.118' '162.159.208.119' '162.159.208.120' '162.159.208.121' '162.159.208.122' '162.159.208.123' '162.159.208.124' '162.159.208.125' '162.159.208.126' '162.159.208.127' '162.159.208.128' '162.159.208.129' '162.159.208.130' '162.159.208.131' '162.159.208.132' '162.159.208.133' '162.159.208.134' '162.159.208.135' '162.159.208.136' '162.159.208.137' '162.159.208.138' '162.159.208.139' '162.159.208.140' '162.159.208.141' '162.159.208.142' '162.159.208.143' '162.159.208.144' '162.159.208.145' '162.159.208.146' '162.159.208.147' '162.159.208.148' '162.159.208.149' '162.159.208.150' '162.159.208.151' '162.159.208.152' '162.159.208.153' '162.159.208.154' '162.159.208.155' '162.159.208.156' '162.159.208.157' '162.159.208.158' '162.159.208.159' '162.159.208.160' '162.159.208.161' '162.159.208.162' '162.159.208.163' '162.159.208.164' '162.159.208.165' '162.159.208.166' '162.159.208.167' '162.159.208.168' '162.159.208.169' '162.159.208.170' '162.159.208.171' '162.159.208.172' '162.159.208.173' '162.159.208.174' '162.159.208.175' '162.159.208.176' '162.159.208.177' '162.159.208.178' '162.159.208.179' '162.159.208.180' '162.159.208.181' '162.159.208.182' '162.159.208.183' '162.159.208.184' '162.159.208.185' '162.159.208.186' '162.159.208.187' '162.159.208.188' '162.159.208.189' '162.159.208.190' '162.159.208.191' '162.159.208.192' '162.159.208.193' '162.159.208.194' '162.159.208.195' '162.159.208.196' '162.159.208.197' '162.159.208.198' '162.159.208.199' '162.159.208.200' '162.159.208.201' '162.159.208.202' '162.159.208.203' '162.159.208.204' '162.159.208.205' '162.159.208.206' '162.159.208.207' '162.159.208.208' '162.159.208.209' '162.159.208.210' '162.159.208.211' '162.159.208.212' '162.159.208.213' '162.159.208.214' '162.159.208.215' '162.159.208.216' '162.159.208.217' '162.159.208.218' '162.159.208.219' '162.159.208.220' '162.159.208.221' '162.159.208.222' '162.159.208.223' '162.159.208.224' '162.159.208.225' '162.159.208.226' '162.159.208.227' '162.159.208.228' '162.159.208.229' '162.159.208.230' '162.159.208.231' '162.159.208.232' '162.159.208.233' '162.159.208.234' '162.159.208.235' '162.159.208.236' '162.159.208.237' '162.159.208.238' '162.159.208.239' '162.159.208.240' '162.159.208.241' '162.159.208.242' '162.159.208.243' '162.159.208.244' '162.159.208.245' '162.159.208.246' '162.159.208.247' '162.159.208.248' '162.159.208.249' '162.159.208.250' '162.159.208.251' '162.159.208.252' '162.159.208.253' '162.159.208.254') elif [[ "${selectType}" = "3" ]]