Procházet zdrojové kódy

use NetAddr() as hash

v2ray před 9 roky
rodič
revize
dcd96df058
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {
-	destString := source.String() + "-" + packet.Destination().String()
+	destString := source.String() + "-" + packet.Destination().NetAddr()
 	if this.locateExistingAndDispatch(destString, packet) {
 		return
 	}