浏览代码

use NetAddr() as hash

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

+ 1 - 1
transport/hub/udp_server.go

@@ -39,7 +39,7 @@ func (this *UDPServer) locateExistingAndDispatch(dest string, packet v2net.Packe
 }
 }
 
 
 func (this *UDPServer) Dispatch(source v2net.Destination, packet v2net.Packet, callback UDPResponseCallback) {
 func (this *UDPServer) Dispatch(source v2net.Destination, packet v2net.Packet, callback UDPResponseCallback) {
-	destString := source.String() + "-" + packet.Destination().String()
+	destString := source.String() + "-" + packet.Destination().NetAddr()
 	if this.locateExistingAndDispatch(destString, packet) {
 	if this.locateExistingAndDispatch(destString, packet) {
 		return
 		return
 	}
 	}