Repository navigation
Let guests on IPv6 reach the host's rendezvous - #155
Conversation
Guests link to each other through the host's own rendezvous, which bound IPv4 only. A guest who reached the host over IPv6 reached the call but not the rendezvous, so guests saw each other only as "Guest####" with no media. The rendezvous now binds dual-stack when the host has a public IPv6 address, is listed there in invites, and gets its own IPv6 pinhole. Also log when each member's media link comes up, and once if it has not after 20 s, on both sides, so a failed guest-to-guest link shows in logs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
benandez
left a comment
There was a problem hiding this comment.
Request changes: the fix looks right. I found no code defect. One docs rule to meet first. Reviewed at 1d2af93.
Should fix
TRANSPARENCY.md is not updated (CONTRIBUTING.md:69, PR template)
This PR changes what others can see:
- The host's own rendezvous now listens on the host's public IPv6 address, so it can be reached from the internet.
- Invites now carry
[ipv6]:rendezvous-port. - The router gets a second PCP pinhole request, for the rendezvous port.
TRANSPARENCY.md still says otherwise:
- Line 105, router row: the IPv6 PCP request is "to let the call's port through". Only the call's port is named.
- Line 106, invite holders: for the host's own rendezvous it lists only the LAN address and port, plus the public port when the router opened one.
- Lines 444-450, router section: no mention of the IPv6 pinholes.
Please update those three places. Keep the conditions: port opening on, a dual-stack socket, not Local only, and no rendezvous configured.
Minor
- A failed rendezvous IPv6 pinhole gives no warning (
host/hosting.rs:359). If the call's IPv6 pinhole opens but the rendezvous's does not, guests on IPv6 are apart again.RouterPort::GuestsApart(router.rs:180) only covers IPv4. Either feedrelay_v6_port's result into that warning, or add this case to "Not covered". - Guests on different address families cannot punch. One guest reaches the rendezvous over IPv6, the other only over IPv4, so each learns the other's address in a different family. The relay still connects them after about 5 s. Worth a line in "Not covered".
- A prepared successor keeps its IPv6 address.
resealreuses the address from when the successor was prepared. If that address rotates before the handover, the rendezvous address listed is stale. The call's own address already behaves this way, so this PR does not introduce it.
Checked and fine
next_v6(None)waits forever, so the new select arm cannot spin.- Both IPv6 pinholes close with the call, for the host and for a successor.
- The forwarder stays IPv4 (
None). - Local only and a configured rendezvous behave as before.
- Without a dual-stack socket,
bind_anyfalls back to IPv4 andnode.ipv6()drops the IPv6 address. - The relay address list holds at most 3 addresses outside Local only, under the cap of 4, so the LAN address is not cut.
only_roomstill limits the rendezvous to this room. Its key is throwaway, per call.LinkNotes: at most one "linked" line and one "no link" line per member. Members who leave are pruned at each epoch. A forwarder link counts for every member.- The CHANGELOG claims match the code.
Not built or run here. test and arm64-preview were still pending at this head. Not tried in a real three-person IPv6 call.
Reviewed with Claude Code.
Review on #155: the router row, the invite row and the router section now say the host's own rendezvous is listed at the public IPv6 address and gets an IPv6 pinhole of its own. A refused rendezvous pinhole is now logged as such. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. Fixed in 23f0694.
@Jeremy8776 had the idea. Claude Code had the keyboard. |
|



Problem
In a call with a host and two guests, each guest linked to the host but not to the other. Each guest saw the other only as "Guest" and a key prefix, with no sound or video.
Guests link to each other through the host's own rendezvous (introductions for a hole punch, or its relay). That rendezvous bound IPv4 only, while the call itself is on the host's public IPv6 address too. A guest who reached the host over IPv6 reached the call but not the rendezvous.
The guest's log could not show this: the side of a link that waits to be dialled logs nothing.
Change
own_serverbinds the host's own rendezvous dual-stack when the host has a public IPv6 address.hosted_addresseslists it at[v6]:portafter the public IPv4 mapping and before the LAN address. The forwarder stays IPv4.engine/link_notes.rs: logs when each member's media link comes up and how, and once if it has not after 20 s. A forwarder link counts for every member.The rendezvous serves this room only (
only_room), so being on IPv6 lends nothing to strangers.Not covered
Testing
cargo test -p veil-app --lib -- link_notes the_rendezvous_is_listed a_later_offer: 6 passed.cargo clippy -p veil-app --all-targets: no warnings.🤖 Generated with Claude Code
Summary by CodeRabbit