Skip to content

Let guests on IPv6 reach the host's rendezvous - #155

Merged
benandez merged 2 commits into
mainfrom
claude/guest-rendezvous
Dec 6, 2026
Merged

benandez merged 2 commits into
mainfrom
claude/guest-rendezvous

Conversation

@Jeremy8776

@Jeremy8776 Jeremy8776 commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

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_server binds the host's own rendezvous dual-stack when the host has a public IPv6 address. hosted_addresses lists it at [v6]:port after the public IPv4 mapping and before the LAN address. The forwarder stays IPv4.
  • The rendezvous port gets its own IPv6 pinhole when port opening is on, closed with the call's (host and successor).
  • New 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

  • Guests reaching the host over IPv4 with port opening off still cannot reach the rendezvous. The existing "Guests apart" warning covers the case where the call port opened but the rendezvous port did not.
  • A refused rendezvous IPv6 pinhole is logged only, not shown in People as "Guests apart".
  • Guests on different address families (one reaches the rendezvous over IPv6, the other over IPv4) cannot punch to each other. The relay still links them after about 5 s.
  • A prepared successor keeps the IPv6 address it had when prepared, as the call's own address already does.

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.
  • TRANSPARENCY.md updated for the rendezvous IPv6 address and pinhole.
  • Not yet tested in a real three-person call over IPv6.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Guests can now reach hosts through IPv6 rendezvous addresses when IPv6 is configured and port opening is enabled.
  • Bug Fixes
    • Media connection logs now identify the connection path and report once when a connection has not been established after 20 seconds.

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>
@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@benandez benandez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 feed relay_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. reseal reuses 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_any falls back to IPv4 and node.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_room still 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>
@Jeremy8776

Copy link
Copy Markdown
Collaborator Author

Thanks. Fixed in 23f0694.

  • TRANSPARENCY.md: the router row, the invite row and the router section now cover the rendezvous's IPv6 address and its own pinhole, with the conditions: port opening on, a public IPv6 address, not Local only, and no rendezvous set in Settings.
  • Refused rendezvous pinhole: now logged on its own line. Showing it in People like GuestsApart is marked as a shortcut and listed under "Not covered".
  • Mixed address families and the successor's stale IPv6 address are added to "Not covered". The second already applies to the call's own address.

@Jeremy8776 had the idea. Claude Code had the keyboard.

@sonarqubecloud

sonarqubecloud Bot commented Dec 6, 2026

Copy link
Copy Markdown

@benandez
benandez merged commit 60e519e into main Dec 6, 2026
12 of 13 checks passed
@benandez
benandez deleted the claude/guest-rendezvous branch December 6, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants