onlyrickroll commited on
Commit
07ff4f4
·
verified ·
1 Parent(s): f159fb5

Update test.sh

Browse files
Files changed (1) hide show
  1. test.sh +2 -3
test.sh CHANGED
@@ -14,9 +14,7 @@ test_proxy() {
14
  local ip_port=$1
15
  local id=$2
16
  if curl -s --socks5 "$ip_port" --connect-timeout 4 "$TEST_TARGET" > /dev/null; then
17
- echo "socks5://$ip_port" > "$TEMP_DIR/success_$id"
18
- else
19
- echo "failed"
20
  fi
21
  }
22
 
@@ -29,6 +27,7 @@ while read -r line; do
29
  count=$((count + 1))
30
  done < $TEMP_DIR/list.txt
31
  wait
 
32
 
33
  FINAL_PROXY=$(ls $TEMP_DIR/success_* 2>/dev/null | head -n 1 | xargs cat 2>/dev/null)
34
 
 
14
  local ip_port=$1
15
  local id=$2
16
  if curl -s --socks5 "$ip_port" --connect-timeout 4 "$TEST_TARGET" > /dev/null; then
17
+ echo "$ip_port" > "$TEMP_DIR/success_$id"
 
 
18
  fi
19
  }
20
 
 
27
  count=$((count + 1))
28
  done < $TEMP_DIR/list.txt
29
  wait
30
+ sleep 10
31
 
32
  FINAL_PROXY=$(ls $TEMP_DIR/success_* 2>/dev/null | head -n 1 | xargs cat 2>/dev/null)
33