|
|
@ -6,7 +6,6 @@ import (
|
|
|
|
"bytes"
|
|
|
|
"bytes"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
"os/exec"
|
|
|
|
"os/exec"
|
|
|
|
"path/filepath"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"v2ray.com/core/common/uuid"
|
|
|
|
"v2ray.com/core/common/uuid"
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -24,7 +23,7 @@ func BuildV2Ray() error {
|
|
|
|
func RunV2RayProtobuf(config []byte) *exec.Cmd {
|
|
|
|
func RunV2RayProtobuf(config []byte) *exec.Cmd {
|
|
|
|
genTestBinaryPath()
|
|
|
|
genTestBinaryPath()
|
|
|
|
|
|
|
|
|
|
|
|
covDir := filepath.Join(os.Getenv("GOPATH"), "out", "v2ray", "cov")
|
|
|
|
covDir := os.Getenv("V2RAY_COV")
|
|
|
|
os.MkdirAll(covDir, os.ModeDir)
|
|
|
|
os.MkdirAll(covDir, os.ModeDir)
|
|
|
|
randomID := uuid.New()
|
|
|
|
randomID := uuid.New()
|
|
|
|
profile := randomID.String() + ".out"
|
|
|
|
profile := randomID.String() + ".out"
|
|
|
|