connection session

This commit is contained in:
v2ray committed 2016-08-14 17:08:01 +02:00
1 parent a2651f4dfc
commit a9d583b92f
14 files changed
+82 -29

No files matched your search

+4 -1
View File
@@ -33,7 +33,10 @@ func (this *InboundConnectionHandler) Close() {
func (this *InboundConnectionHandler) Communicate(destination v2net.Destination) error {
ray := this.PacketDispatcher.DispatchToOutbound(&proxy.InboundHandlerMeta{
AllowPassiveConnection: false,
}, destination)
}, &proxy.SessionInfo{
Source: v2net.TCPDestination(v2net.LocalHostIP, v2net.Port(0)),
Destination: destination,
})
input := ray.InboundInput()
output := ray.InboundOutput()