1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00
This commit is contained in:
v2ray 2016-06-04 12:41:48 +02:00
parent a4d76dc394
commit 243e3ced89
3 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"port": 50030,
"log": {
"loglevel": "debug"
"loglevel": "info"
},
"inbound": {
"listen": "127.0.0.1",

View File

@ -1,7 +1,7 @@
{
"port": 50031,
"log": {
"loglevel": "debug"
"loglevel": "info"
},
"inbound": {
"listen": "127.0.0.1",

View File

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