This commit is contained in:
crusader 2018-09-17 20:10:57 +09:00
parent 863dc7c6dc
commit d2edc97a11

View File

@ -5,7 +5,7 @@ import (
"os/exec"
)
func Ping(destination string, options *PingOptions) (string, error) {
func Ping(destination string, options *PingOptions) (*PingResult, error) {
options.Validate()
params := make([]string, 0)
@ -19,5 +19,5 @@ func Ping(destination string, options *PingOptions) (string, error) {
return "", err
}
return parseLinuxPing(output)
return parseWindowsPing(output)
}