fix bug x2.

master
livejq 2 years ago
parent aee9f67970
commit 207cd46900
  1. 4
      chntunnel/chntunnel.sh

@ -118,7 +118,7 @@ collecting() {
do do
for j in '\\' '|' '/' '-' for j in '\\' '|' '/' '-'
do do
printf "Collecting, a little long %c%c%c%c%c\r" \ printf "Collecting %c%c%c%c%c\r" \
"$j" "$j" "$j" "$j" "$j" "$j" "$j" "$j" "$j" "$j"
sleep 0.1 sleep 0.1
done done
@ -142,7 +142,7 @@ if [ $# != 0 ]; then
fi fi
collecting collecting
grep "apnic|CN|ipv4|" $APNIC | awk -F'|' '{print $4"/"32-log($5)/log(2)}' >$WHITELIST grep "apnic|CN|ipv4|" $APNIC | awk -F'|' '{print $4"/"32-log($5)/log(2)}' >$WHITELIST
grep '|ipv4|' $APNIC | grep -v '|CN|' | awk -F'|' '{print $4"/"32-log($5)/log(2)}' >$GFWLIST grep '|ipv4|' $APNIC | grep -v '|CN|' | grep -v 'summary' | awk -F'|' '{print $4"/"32-log($5)/log(2)}' >$GFWLIST
msg_pass "Collection complete!" msg_pass "Collection complete!"
# grep '^apnic|CN|ipv4|' $APNIC | grep -o "$MATCH_IP|$MATCH_MASK" | while read line # grep '^apnic|CN|ipv4|' $APNIC | grep -o "$MATCH_IP|$MATCH_MASK" | while read line
# do # do

Loading…
Cancel
Save