Browse Source

split vmess inbound and outbound

Darien Raymond 10 years ago
parent
commit
11220a4952
3 changed files with 13 additions and 1 deletions
  1. 0 0
      proxy/vmess/inbound/inbound.go
  2. 1 1
      proxy/vmess/outbound/outbound.go
  3. 12 0
      proxy/vmess/vmess.go

+ 0 - 0
proxy/vmess/inbound.go → proxy/vmess/inbound/inbound.go


+ 1 - 1
proxy/vmess/outbound.go → proxy/vmess/outbound/outbound.go

@@ -1,4 +1,4 @@
-package vmess
+package outbound
 
 import (
 	"crypto/md5"

+ 12 - 0
proxy/vmess/vmess.go

@@ -0,0 +1,12 @@
+// Package vmess contains the implementation of VMess protocol and transportation.
+//
+// VMess contains both inbound and outbound connections. VMess inbound is usually used on servers
+// together with 'freedom' to talk to final destination, while VMess outbound is usually used on
+// clients with 'socks' for proxying.
+package vmess
+
+// The actual implementation is in the following packages respectively.
+import (
+	_ "github.com/v2ray/v2ray-core/proxy/vmess/inbound"
+	_ "github.com/v2ray/v2ray-core/proxy/vmess/outbound"
+)