@@ -122,10 +122,18 @@ func (e *CommandExecutor) Execute(selectedOptions map[string]bool, language stri
122122 PrintCenteredTitle ("System-Basic-Information" , 82 )
123123 }
124124 }
125- // TODO: 需要实现BasicsAndSecurityCheck函数
126- // _, _, basicInfo, securityInfo, _ = BasicsAndSecurityCheck(language, "ipv4", securityTestStatus)
127- basicInfo = "基础信息检测功能待实现\n "
128- securityInfo = "安全信息检测功能待实现\n "
125+ // 根据网络连接状态选择检测类型
126+ checkType := nt3Type
127+ if preCheck .Connected && preCheck .StackType == "DualStack" {
128+ _ , _ , basicInfo , securityInfo , _ = BasicsAndSecurityCheck (language , checkType , securityTestStatus )
129+ } else if preCheck .Connected && preCheck .StackType == "IPv4" {
130+ _ , _ , basicInfo , securityInfo , _ = BasicsAndSecurityCheck (language , "ipv4" , securityTestStatus )
131+ } else if preCheck .Connected && preCheck .StackType == "IPv6" {
132+ _ , _ , basicInfo , securityInfo , _ = BasicsAndSecurityCheck (language , "ipv6" , securityTestStatus )
133+ } else {
134+ _ , _ , basicInfo , securityInfo , _ = BasicsAndSecurityCheck (language , "" , false )
135+ securityTestStatus = false
136+ }
129137 if basicStatus {
130138 fmt .Printf ("%s" , basicInfo )
131139 }
0 commit comments