option to allow passive connection

This commit is contained in:
v2ray
2016-08-12 23:37:21 +02:00
parent a43ee2f1c2
commit bcd27ba36f
18 changed files with 76 additions and 47 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ func (this *Server) handleSocks4(clientAddr string, reader *v2io.BufferedReader,
}
func (this *Server) transport(reader io.Reader, writer io.Writer, destination v2net.Destination) {
ray := this.packetDispatcher.DispatchToOutbound(destination)
ray := this.packetDispatcher.DispatchToOutbound(this.meta, destination)
input := ray.InboundInput()
output := ray.InboundOutput()
+1 -1
View File
@@ -9,7 +9,7 @@ import (
)
func (this *Server) listenUDP() error {
this.udpServer = udp.NewUDPServer(this.packetDispatcher)
this.udpServer = udp.NewUDPServer(this.meta, this.packetDispatcher)
udpHub, err := udp.ListenUDP(this.meta.Address, this.meta.Port, this.handleUDPPayload)
if err != nil {
log.Error("Socks: Failed to listen on udp ", this.meta.Address, ":", this.meta.Port)