ing
This commit is contained in:
parent
fdee1f764f
commit
24c893aaf4
|
@ -10,9 +10,7 @@ func Ping(destination string, options *PingOptions) (*PingResult, error) {
|
|||
|
||||
params := make([]string, 0)
|
||||
params = append(params, "/C")
|
||||
params = append(params, "chcp 437")
|
||||
params = append(params, "&&")
|
||||
params = append(params, "ping")
|
||||
params = append(params, "chcp 437 && ping")
|
||||
params = append(params, destination)
|
||||
params = append(params, fmt.Sprintf("-n %d", options.Retry))
|
||||
params = append(params, fmt.Sprintf("-w %d", options.Deadline*1000))
|
||||
|
|
Loading…
Reference in New Issue
Block a user