From d2edc97a11bd6ce67cfd8d3730f09cf370b5b480 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 17 Sep 2018 20:10:57 +0900 Subject: [PATCH] ing --- net/ping/ping_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }