修订代码

This commit is contained in:
e1732a364fed
2000-01-01 00:00:00 +00:00
parent b74b8bdc6f
commit f947b2a479

View File

@@ -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))