1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-31 22:45:39 -05:00

handle inbound detour in vmess inbound

This commit is contained in:
v2ray
2016-01-19 23:41:40 +01:00
parent 573d0a9c29
commit b0adb24003
13 changed files with 163 additions and 75 deletions

View File

@@ -9,17 +9,21 @@ import (
)
type InboundConnectionHandler struct {
Port v2net.Port
port v2net.Port
Space app.Space
ConnInput io.Reader
ConnOutput io.Writer
}
func (this *InboundConnectionHandler) Listen(port v2net.Port) error {
this.Port = port
this.port = port
return nil
}
func (this *InboundConnectionHandler) Port() v2net.Port {
return this.port
}
func (this *InboundConnectionHandler) Close() {
}