diff --git a/testing/scenarios/data/test_4_client.json b/testing/scenarios/data/test_4_client.json index 94723c87..6c6d5878 100644 --- a/testing/scenarios/data/test_4_client.json +++ b/testing/scenarios/data/test_4_client.json @@ -1,7 +1,7 @@ { "port": 50030, "log": { - "loglevel": "debug" + "loglevel": "info" }, "inbound": { "listen": "127.0.0.1", diff --git a/testing/scenarios/data/test_4_server.json b/testing/scenarios/data/test_4_server.json index c2a2300c..3d0fc550 100644 --- a/testing/scenarios/data/test_4_server.json +++ b/testing/scenarios/data/test_4_server.json @@ -1,7 +1,7 @@ { "port": 50031, "log": { - "loglevel": "debug" + "loglevel": "info" }, "inbound": { "listen": "127.0.0.1", diff --git a/testing/scenarios/server_env.go b/testing/scenarios/server_env.go index 8941552a..f373c787 100644 --- a/testing/scenarios/server_env.go +++ b/testing/scenarios/server_env.go @@ -5,6 +5,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" _ "github.com/v2ray/v2ray-core/app/router/rules" "github.com/v2ray/v2ray-core/common/log" @@ -35,7 +36,10 @@ func BuildV2Ray() error { if err != nil { return err } - binaryPath = filepath.Join(dir, "v2ray.exe") + binaryPath = filepath.Join(dir, "v2ray") + if runtime.GOOS == "windows" { + binaryPath += ".exe" + } cmd := exec.Command("go", "build", "-tags=json", "-o="+binaryPath, filepath.Join("github.com", "v2ray", "v2ray-core", "release", "server")) return cmd.Run() }