mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-22 23:13:46 +00:00
refine dispatcher
This commit is contained in:
13 files changed
+31
-27
No files matched your search
@@ -31,11 +31,12 @@ func (this *InboundConnectionHandler) Close() {
|
||||
}
|
||||
|
||||
func (this *InboundConnectionHandler) Communicate(destination v2net.Destination) error {
|
||||
ray := this.PacketDispatcher.DispatchToOutbound(&proxy.InboundHandlerMeta{
|
||||
AllowPassiveConnection: false,
|
||||
}, &proxy.SessionInfo{
|
||||
ray := this.PacketDispatcher.DispatchToOutbound(&proxy.SessionInfo{
|
||||
Source: v2net.TCPDestination(v2net.LocalHostIP, v2net.Port(0)),
|
||||
Destination: destination,
|
||||
Inbound: &proxy.InboundHandlerMeta{
|
||||
AllowPassiveConnection: false,
|
||||
},
|
||||
})
|
||||
|
||||
input := ray.InboundInput()
|
||||
|
||||
Reference in new issue
Block a user