Spaces:
Paused
Paused
Update test.sh
Browse files
test.sh
CHANGED
|
@@ -16,7 +16,7 @@ test_proxy() {
|
|
| 16 |
echo -n "测试 $1 ... "
|
| 17 |
local ip_port=$1
|
| 18 |
local id=$2
|
| 19 |
-
if curl -Iv -x "$ip_port" --connect-timeout 16 "$TEST_TARGET" > /dev/null; then
|
| 20 |
echo "$ip_port" > "$TEMP_DIR/success_$id"
|
| 21 |
echo "success"
|
| 22 |
else
|
|
|
|
| 16 |
echo -n "测试 $1 ... "
|
| 17 |
local ip_port=$1
|
| 18 |
local id=$2
|
| 19 |
+
if curl -Iv -4 -x "$ip_port" --connect-timeout 16 "$TEST_TARGET" > /dev/null; then
|
| 20 |
echo "$ip_port" > "$TEMP_DIR/success_$id"
|
| 21 |
echo "success"
|
| 22 |
else
|