From 24c893aaf4a1d3efedc9d53acc14c9a44c562f50 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 17 Sep 2018 20:20:38 +0900 Subject: [PATCH] ing --- net/ping/ping_windows.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/ping/ping_windows.go b/net/ping/ping_windows.go index 510f76b..dcf04c9 100644 --- a/net/ping/ping_windows.go +++ b/net/ping/ping_windows.go @@ -10,9 +10,7 @@ func Ping(destination string, options *PingOptions) (*PingResult, error) { params := make([]string, 0) params = append(params, "/C") - params = append(params, "chcp 437") - params = append(params, "&&") - params = append(params, "ping") + params = append(params, "chcp 437 && ping") params = append(params, destination) params = append(params, fmt.Sprintf("-n %d", options.Retry)) params = append(params, fmt.Sprintf("-w %d", options.Deadline*1000))