ing
This commit is contained in:
parent
863dc7c6dc
commit
d2edc97a11
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user