moq-webrtc: answer each peer from the local address it reached on a multi-homed wildcard bind

Abierto
#10,324 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Start by tracing Server::bind and Server::feed, then follow how Datagram.local and Transmit.src_ip move through the mux to the agent. Check the relay embedding documentation and the behavior introduced in PR #10317. Done means replies use the local IP each peer reached, with a test covering two loopback aliases on a wildcard bind.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

moq-webrtc's server answers from whatever source address the kernel picks, on both of its sockets:

  • Server::bind on a wildcard address (0.0.0.0, [::]) replies with UdpSocket::send_to.
  • Server::feed replies through moq_tokio::quic::demux::WebRtc::send with Transmit.src_ip: None.

On a host with several local addresses, the kernel's route lookup can pick a different source than the address the peer sent to. ICE matches a check's response by its 4-tuple, so the check fails, and DTLS and RTP replies from the wrong address are dropped. The relay embedding doc already warns embedders to set src_ip to the Datagram.local being answered.

Possible shape:

  • Carry the local IP each inbound datagram arrived on (Datagram.local from the feed, IP_PKTINFO/IPV6_RECVPKTINFO on a bound socket) through the mux to the agent.
  • Answer each remote from the local IP it last reached, which for a connected session is the selected pair's.
  • Test it with two loopback aliases on a wildcard bind.

Found while landing Server::feed (https://github.com/moq-dev/moq/pull/10317), which kept the bound server's behavior.

(Written by Claude Opus 5.5)

Lenguaje dominante
Rust
Estrellas
1.6k
Forks
251
Merge medio
10 h 10 min
PR fusionados (30 d)
832

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de moq-dev/moq

Todos los issues de moq-dev/moq

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.