core: 修复国内机器误判为 IPv6 不通

原因是用了 ping dnspod 公共 IPv6 DNS 作为连通性检测
但是这个 DNS 禁 ping
This commit is contained in:
bin456789
2024-08-24 17:28:17 +08:00
parent 49420773dd
commit 665f976a87
4 changed files with 8 additions and 8 deletions

View File

@ -247,8 +247,8 @@ test_url_real() {
echo $url
for i in $(seq 5 -1 0); do
if command curl --insecure --connect-timeout 10 -Lfr 0-1048575 "$url" \
1> >(dd bs=1M count=1 of=$tmp_file iflag=fullblock 2>/dev/null) \
2> >(grep -v 'curl: (23)' >&2); then
1> >(exec dd bs=1M count=1 of=$tmp_file iflag=fullblock 2>/dev/null) \
2> >(exec grep -v 'curl: (23)' >&2); then
break
else
ret=$?