Переглянути джерело

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