Simpilify configuration files

This commit is contained in:
V2Ray
2015-10-06 23:11:08 +02:00
parent 78daf8a879
commit 72b4eeba8b
27 changed files with 251 additions and 208 deletions
-4
View File
@@ -1,4 +0,0 @@
{
"auth": "noauth",
"udp": false
}
-6
View File
@@ -1,6 +0,0 @@
{
"clients": [
{"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"}
],
"udp": false
}
-12
View File
@@ -1,12 +0,0 @@
{
"vnext": [
{
"address": "127.0.0.1",
"port": 27183,
"users": [
{"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"}
],
"network": "tcp"
}
]
}
+16 -2
View File
@@ -2,10 +2,24 @@
"port": 1080,
"inbound": {
"protocol": "socks",
"file": "in_socks.json"
"settings": {
"auth": "noauth",
"udp": false
}
},
"outbound": {
"protocol": "vmess",
"file": "out_vmess.json"
"settings": {
"vnext": [
{
"address": "127.0.0.1",
"port": 27183,
"users": [
{"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"}
],
"network": "tcp"
}
]
}
}
}
+7 -2
View File
@@ -2,10 +2,15 @@
"port": 27183,
"inbound": {
"protocol": "vmess",
"file": "in_vmess.json"
"settings": {
"clients": [
{"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"}
],
"udp": false
}
},
"outbound": {
"protocol": "freedom",
"file": ""
"settings": {}
}
}
+2 -1
View File
@@ -9,7 +9,8 @@ import (
jsonconf "github.com/v2ray/v2ray-core/config/json"
// The following are neccesary as they register handlers in their init functions.
_ "github.com/v2ray/v2ray-core/proxy/freedom"
_ "github.com/v2ray/v2ray-core/proxy/freedom/config/json"
_ "github.com/v2ray/v2ray-core/proxy/freedom"
_ "github.com/v2ray/v2ray-core/proxy/socks"
_ "github.com/v2ray/v2ray-core/proxy/vmess"
)