ing
This commit is contained in:
parent
f02b66bcd7
commit
fdee1f764f
|
@ -20,7 +20,7 @@ func Ping(destination string, options *PingOptions) (*PingResult, error) {
|
||||||
pCmd := exec.Command("cmd.exe", params...)
|
pCmd := exec.Command("cmd.exe", params...)
|
||||||
output, err := pCmd.CombinedOutput()
|
output, err := pCmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return parseWindowsPing(output)
|
return parseWindowsPing(output)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user