mirror of https://github.com/v2ray/v2ray-core
fix udp connection mapping
parent
634c4964cc
commit
ac4d92a186
|
@ -123,7 +123,7 @@ func (this *UDPServer) locateExistingAndDispatch(name string, payload *alloc.Buf
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *UDPServer) Dispatch(source v2net.Destination, destination v2net.Destination, payload *alloc.Buffer, callback UDPResponseCallback) {
|
func (this *UDPServer) Dispatch(source v2net.Destination, destination v2net.Destination, payload *alloc.Buffer, callback UDPResponseCallback) {
|
||||||
destString := source.Address().String() + "-" + destination.NetAddr()
|
destString := source.NetAddr() + "-" + destination.NetAddr()
|
||||||
log.Debug("UDP Server: Dispatch request: ", destString)
|
log.Debug("UDP Server: Dispatch request: ", destString)
|
||||||
if this.locateExistingAndDispatch(destString, payload) {
|
if this.locateExistingAndDispatch(destString, payload) {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue