diff --git a/README.md b/README.md index f0bbb90c9..2c498c629 100644 --- a/README.md +++ b/README.md @@ -29,4 +29,4 @@ V2Ray 是一个翻墙工具包,用于简化和复用其它翻墙工具,加 Version 1.0 Alpha,[安装方式](https://github.com/V2Ray/v2ray-core/blob/master/spec/install.md)。理论上可用,简单测试通过,还未进行稳定性和性能测试。 ## 关于 -我是只是一名普通的开发人员,已肉翻,本已不依赖这些翻墙工具,但 ShadowSock 和 GoAgent 被迫删除代码的事件实在太恶心,不得不做点什么了。 \ No newline at end of file +我是只是一名普通的开发人员,已肉翻,本已不依赖这些翻墙工具,但 ShadowSock 和 GoAgent 被迫删除代码的事件实在太恶心,不得不做点什么了。 diff --git a/release/config/in_socks.json b/release/config/in_socks.json index f789d4a94..06cb86b0e 100644 --- a/release/config/in_socks.json +++ b/release/config/in_socks.json @@ -1,4 +1,3 @@ -/* Socks 5 协议配置 */ { - "auth": "noauth" /* 用户验证方式,暂时只支持匿名模式 */ + "auth": "noauth" } diff --git a/release/config/in_vmess.json b/release/config/in_vmess.json index 76e4e6a82..5df3150db 100644 --- a/release/config/in_vmess.json +++ b/release/config/in_vmess.json @@ -1,7 +1,5 @@ -/* VMess 接收配置 */ { "clients": [ - /* 允许的用户 ID */ {"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"} ] } diff --git a/release/config/out_vmess.json b/release/config/out_vmess.json index 49a9e5cef..4675cc8ee 100644 --- a/release/config/out_vmess.json +++ b/release/config/out_vmess.json @@ -1,11 +1,9 @@ -/* VMess 转发配置 */ { "vnext": [ { - "address": "127.0.0.1", /* 中继服务器地址 */ + "address": "127.0.0.1", "port": 27183, "users": [ - /* 以下列用户身份转发 */ {"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"} ] } diff --git a/release/config/vpoint_socks_vmess.json b/release/config/vpoint_socks_vmess.json index 4287128f5..db43a157e 100644 --- a/release/config/vpoint_socks_vmess.json +++ b/release/config/vpoint_socks_vmess.json @@ -1,12 +1,11 @@ -/* Point 服务器配置,接受 Socks5 协议请求,并转发到一下 Point 服务器。 */ { - "port": 1080, /* Socks 5 端口 */ + "port": 1080, "inbound": { "protocol": "socks", - "file": "in_socks.json" /* Socks 5 配置文件 */ + "file": "in_socks.json" }, "outbound": { "protocol": "vmess", - "file": "out_vmess.json" /* VMess 配置文件 */ + "file": "out_vmess.json" } } diff --git a/release/config/vpoint_vmess_freedom.json b/release/config/vpoint_vmess_freedom.json index 38a5865d6..af5992cb8 100644 --- a/release/config/vpoint_vmess_freedom.json +++ b/release/config/vpoint_vmess_freedom.json @@ -1,4 +1,3 @@ -/* Point 服务器配置,输入 VMess 协议,转发到最终要该问的网站。 */ { "port": 27183, "inbound": { diff --git a/release/server/main.go b/release/server/main.go index 34e9206be..0d3946086 100644 --- a/release/server/main.go +++ b/release/server/main.go @@ -8,6 +8,7 @@ import ( "github.com/v2ray/v2ray-core" "github.com/v2ray/v2ray-core/log" + // The following are neccesary as they register handlers in their init functions. _ "github.com/v2ray/v2ray-core/net/freedom" _ "github.com/v2ray/v2ray-core/net/socks" _ "github.com/v2ray/v2ray-core/net/vmess"