#!/bin/bash
rm -rf cfip 2>/dev/null
mkdir cfip 2>/dev/null
cd cfip
for i in $(seq 10)
do
ping -c 1 -W 1 pan.zengge99.ml
done 

curl -k -o cf.sh https://pan.zengge99.ml/router.sh
chmod 777 cf.sh

p_speed_filter='| grep "HKG\\\|NRT\\\|TPE\\\|ICN\\\|SIN\\\|KIX"'
f=./cf.sh && sed -i "s/^p_speed_filter.*/p_speed_filter='$p_speed_filter'/g" $f

./cf.sh -r -k -e -bk-ftp-srv "ftp://ftpuser:1234@vm1.zengge99.eu.org:21"

touch hspeedlog.txt
cat hspeedlog.txt | grep -v " 0.0" | awk ' !x[$1]++ '  > hspeedlog1.txt;mv hspeedlog1.txt hspeedlog.txt