mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-26 08:15:19 +00:00
Update nodeloc_vps_autotest_ip.sh
This commit is contained in:
parent
20c5237933
commit
3f2ba997aa
@ -123,11 +123,6 @@ run_and_capture() {
|
||||
echo "$command_output"
|
||||
}
|
||||
|
||||
# 清理控制字符的函数
|
||||
clean_output() {
|
||||
echo "$1" | sed 's/\x1b\[[0-9;]*[a-zA-Z]//g'
|
||||
}
|
||||
|
||||
# 运行所有测试
|
||||
run_all_tests() {
|
||||
echo -e "${RED}开始测试,测试时间较长,请耐心等待...${NC}"
|
||||
@ -135,7 +130,6 @@ run_all_tests() {
|
||||
# IP质量
|
||||
echo -e "运行${YELLOW}IP质量测试...${NC}"
|
||||
ip_quality_result=$(run_and_capture "bash <(curl -Ls IP.Check.Place)")
|
||||
cleaned_result=$(clean_output "$ip_quality_result")
|
||||
|
||||
# 格式化结果
|
||||
echo -e "${YELLOW}此报告由Nodeloc_VPS_自动脚本测试生成...${NC}"
|
||||
@ -146,7 +140,7 @@ format_results() {
|
||||
result="[tabs]
|
||||
[tab=\"IP质量\"]
|
||||
\`\`\`
|
||||
$cleaned_result
|
||||
$ip_quality_result
|
||||
\`\`\`
|
||||
[/tab]
|
||||
[/tabs]
|
||||
|
Loading…
Reference in New Issue
Block a user