From e8a58e0936d649b98ac6cf184b35e604eea6405d Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Fri, 10 Apr 2020 13:24:56 +0800 Subject: [PATCH] Combine stdout and stderr when executing --- proxy/traceroute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/traceroute.go b/proxy/traceroute.go index 5082216..de7054a 100644 --- a/proxy/traceroute.go +++ b/proxy/traceroute.go @@ -22,7 +22,7 @@ func tracerouteTryExecute(cmd []string, args [][]string) ([]byte, error) { var err error for i := range cmd { instance := exec.Command(cmd[i], args[i]...) - output, err = instance.Output() + output, err = instance.CombinedOutput() if err == nil { return output, err }