Преглед на файлове

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