Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MortezaBashsiz committed Feb 15, 2023
1 parent 2ff5d2d commit 781d957
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/cfFindIP.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function fncMainCFFind {
fi

cloudFlareASNList=( AS209242 )
cloudFlareOkList=(31 45 66 80 89 103 104 108 141 147 154 159 168 170 185 188 191 192 193 194 195 199 203 205 212)
cloudFlareOkList=("S" 31 45 66 80 89 103 104 108 141 147 154 159 168 170 185 188 191 192 193 194 195 199 203 205 212 "E")

parallelVersion=$(parallel --version | head -n1 | grep -Ewo '[0-9]{8}')

Expand Down Expand Up @@ -286,8 +286,7 @@ function fncMainCFFind {
do
fncShowProgress "$passedIpsCount" "$ipListLength"
firstOctet=$(echo "$subNet" | awk -F "." '{ print $1 }')
# shellcheck disable=SC2128
exists=$(echo "$cloudFlareOkList" | grep "$firstOctet")
exists=$(echo "${cloudFlareOkList[*]}" | grep " $firstOctet ")
if [[ "$exists" ]]
then
killall v2ray > /dev/null 2>&1
Expand All @@ -313,8 +312,7 @@ function fncMainCFFind {
do
fncShowProgress "$passedIpsCount" "$ipListLength"
firstOctet=$(echo "$subNet" | awk -F "." '{ print $1 }')
# shellcheck disable=SC2128
exists=$(echo "$cloudFlareOkList" | grep "$firstOctet")
exists=$(echo "${cloudFlareOkList[*]}" | grep " $firstOctet ")
if [[ "$exists" ]]
then
killall v2ray > /dev/null 2>&1
Expand Down

0 comments on commit 781d957

Please sign in to comment.