mirror of
https://github.com/oneclickvirt/ecs.git
synced 2025-10-04 15:02:49 +08:00
fix: 规范输出
This commit is contained in:
2
goecs.go
2
goecs.go
@@ -449,7 +449,7 @@ func handleLanguageSpecificSettings() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleSignalInterrupt(sig chan os.Signal, startTime *time.Time, output *string, tempOutput string, uploadDone chan bool, outputMutex *sync.Mutex) {
|
func handleSignalInterrupt(sig chan os.Signal, startTime *time.Time, output *string, _ string, uploadDone chan bool, outputMutex *sync.Mutex) {
|
||||||
select {
|
select {
|
||||||
case <-sig:
|
case <-sig:
|
||||||
if !finish {
|
if !finish {
|
||||||
|
@@ -6,5 +6,5 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func Test(t *testing.T) {
|
func Test(t *testing.T) {
|
||||||
fmt.Print("%s", MediaTest("zh"))
|
fmt.Printf("%s", MediaTest("zh"))
|
||||||
}
|
}
|
||||||
|
@@ -20,7 +20,7 @@ func TestBasicsAndSecurityCheck(t *testing.T) {
|
|||||||
timeout := 3 * time.Second
|
timeout := 3 * time.Second
|
||||||
result := CheckPublicAccess(timeout)
|
result := CheckPublicAccess(timeout)
|
||||||
if result.Connected {
|
if result.Connected {
|
||||||
fmt.Print("✅ 本机有公网连接,类型: %s\n", result.StackType)
|
fmt.Printf("✅ 本机有公网连接,类型: %s\n", result.StackType)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("❌ 本机未检测到公网连接")
|
fmt.Println("❌ 本机未检测到公网连接")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user