Skip to content

Commit

Permalink
更新避免WIN下自动关闭窗口
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Jul 28, 2024
1 parent 091df16 commit fae17eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"flag"
"fmt"
"net/http"
"runtime"
"os"

backtrace "github.com/oneclickvirt/backtrace/bk"
Expand Down Expand Up @@ -58,4 +59,8 @@ func main() {
backtrace.BackTrace()
fmt.Println(Yellow("准确线路自行查看详细路由,本测试结果仅作参考"))
fmt.Println(Yellow("同一目标地址多个线路时,可能检测已越过汇聚层,除了第一个线路外,后续信息可能无效"))
if runtime.GOOS == "windows" || runtime.GOOS == "darwin" {
fmt.Println("Press Enter to exit...")
fmt.Scanln()
}
}

0 comments on commit fae17eb

Please sign in to comment.