diff --git a/proxy/vmess/inbound.go b/proxy/vmess/inbound/inbound.go similarity index 100% rename from proxy/vmess/inbound.go rename to proxy/vmess/inbound/inbound.go diff --git a/proxy/vmess/outbound.go b/proxy/vmess/outbound/outbound.go similarity index 99% rename from proxy/vmess/outbound.go rename to proxy/vmess/outbound/outbound.go index b7277deb5..e593431c1 100644 --- a/proxy/vmess/outbound.go +++ b/proxy/vmess/outbound/outbound.go @@ -1,4 +1,4 @@ -package vmess +package outbound import ( "crypto/md5" diff --git a/proxy/vmess/vmess.go b/proxy/vmess/vmess.go new file mode 100644 index 000000000..51036d5ca --- /dev/null +++ b/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" +)