diff --git a/net/ping/ping_windows.go b/net/ping/ping_windows.go index 46bdd14..43400de 100644 --- a/net/ping/ping_windows.go +++ b/net/ping/ping_windows.go @@ -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) }