adapt windows tracert

This commit is contained in:
buyuxiang
2022-08-03 16:13:01 +08:00
parent be9542ffee
commit 8b72938f34
6 changed files with 215 additions and 235 deletions

View File

@@ -1,6 +1,7 @@
package cmd
import (
"runtime"
"time"
"github.com/rs/zerolog/log"
@@ -53,6 +54,9 @@ var traceRouteCmd = &cobra.Command{
setLogLevel(logLevel)
},
RunE: func(cmd *cobra.Command, args []string) error {
if runtime.GOOS == "windows" {
log.Info().Msg("using default probe number (3) on Windows")
}
return dial.DoTraceRoute(&traceRouteOptions, args)
},
}