浏览代码

fix udp connection mapping

v2ray 9 年之前
父节点
当前提交
ac4d92a186
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      transport/hub/udp_server.go

+ 1 - 1
transport/hub/udp_server.go

@@ -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) {
-	destString := source.Address().String() + "-" + destination.NetAddr()
+	destString := source.NetAddr() + "-" + destination.NetAddr()
 	log.Debug("UDP Server: Dispatch request: ", destString)
 	if this.locateExistingAndDispatch(destString, payload) {
 		return