v0.1.8 - 在存在IPV6信息时修复排版缺少一个换行符

This commit is contained in:
spiritlhl
2025-01-18 19:11:13 +08:00
parent 94f9576383
commit ea5eab5e5a
3 changed files with 4 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ import (
)
var (
ecsVersion = "v0.1.7"
ecsVersion = "v0.1.8"
menuMode bool
onlyChinaTest bool
input, choice string

View File

@@ -168,8 +168,8 @@ goecs_check() {
sleep 1
done
if [ -z "$ECS_VERSION" ]; then
_yellow "Unable to get version info, using default version 0.1.7"
ECS_VERSION="0.1.7"
_yellow "Unable to get version info, using default version 0.1.8"
ECS_VERSION="0.1.8"
fi
# Check if original goecs command exists
version_output=""

View File

@@ -153,6 +153,7 @@ func BasicsAndSecurityCheck(language, nt3CheckType string, securtyCheckStatus bo
basicInfo := systemInfo + ipInfo
if errv6 == nil && ipv6Info != "" {
basicInfo += ipv6Info
basicInfo += "\n"
}
if strings.Contains(ipInfo, "IPV4") && strings.Contains(ipInfo, "IPV6") {
uts.IPV4 = true