moq-webrtc: answer each peer from the local address it reached on a multi-homed wildcard bind
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- audio-video-rtc, networking
Research direction
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.
Written by the indexing model from the issue text.
Description
moq-webrtc's server answers from whatever source address the kernel picks, on both of its sockets:
Server::bindon a wildcard address (0.0.0.0,[::]) replies withUdpSocket::send_to.Server::feedreplies throughmoq_tokio::quic::demux::WebRtc::sendwithTransmit.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.localfrom the feed,IP_PKTINFO/IPV6_RECVPKTINFOon 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)
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 251
- Avg merge
- 10h 10m
- Merged PRs (30d)
- 822
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from moq-dev/moq
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
moq-dev/moq#10463 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
moq-dev/moq#10460 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
moq-dev/moq#10373 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
moq-dev/moq#10336 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
lbjlaq/Antigravity-Manager#4180 ·
Maintainers usually reply within 1 day
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zizmorcore/zizmor#2608 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
longbridge/nsh#4201 ·
Maintainers usually reply within 1 day