From f947b2a479d15979aa77efbea58fc83a22872a82 Mon Sep 17 00:00:00 2001 From: e1732a364fed <75717694+e1732a364fed@users.noreply.github.com> Date: Sat, 1 Jan 2000 00:00:00 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E8=AE=A2=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy/tun/route_windows.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy/tun/route_windows.go b/proxy/tun/route_windows.go index d96e41e..616caf5 100644 --- a/proxy/tun/route_windows.go +++ b/proxy/tun/route_windows.go @@ -20,8 +20,7 @@ func init() { */ autoRouteFunc = func(tunDevName, tunGateway, tunIP string, directList []string) { - params := "netstat -nr" - out, err := exec.Command("", params).Output() + out, err := exec.Command("netstat", "-nr").Output() if err != nil { if ce := utils.CanLogErr("auto route failed"); ce != nil { ce.Write(zap.Error(err))