Update nodeloc_vps_autotest_ip.sh

This commit is contained in:
Jensfrank 2024-06-27 00:41:27 +08:00 committed by GitHub
parent 4e097eda71
commit 552544f3de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,11 +146,7 @@ run_all_tests() {
# IP质量
echo -e "运行${YELLOW}IP质量测试...${NC}"
ip_quality_result=$(run_and_capture "bash <(curl -Ls IP.Check.Place)")
if [ $? -ne 0 ]; then
echo "Error occurred during IP quality test:" >> /root/debug.log
echo "$ip_quality_result" >> /root/debug.log
fi
# 格式化结果
echo -e "${YELLOW}此报告由Nodeloc_VPS_自动脚本测试生成...${NC}"
format_results
@ -158,10 +154,7 @@ run_all_tests() {
# 格式化结果为 Markdown
format_results() {
echo "Debug: IP质量结果长度: ${#ip_quality_result}" >> /root/debug.log
echo "Debug: IP质量结果前100字符: ${ip_quality_result:0:300}" >> /root/debug.log
result="[tabs]
result="[tabs]
[tab=\"IP质量\"]
\`\`\`
$ip_quality_result