소스 검색

split vmess inbound and outbound

Darien Raymond 10 년 전
부모
커밋
11220a4952
3개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  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"
+)