fix: 规范输出

This commit is contained in:
spiritlhl
2025-08-06 09:06:48 +00:00
parent f99a37edbe
commit 5b686abdc8
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ func TestBasicsAndSecurityCheck(t *testing.T) {
timeout := 3 * time.Second
result := CheckPublicAccess(timeout)
if result.Connected {
fmt.Print("✅ 本机有公网连接,类型: %s\n", result.StackType)
fmt.Printf("✅ 本机有公网连接,类型: %s\n", result.StackType)
} else {
fmt.Println("❌ 本机未检测到公网连接")
}