You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(peers): derive peer role from capabilities instead of hardcoding Entry
Every registration site (exit accept/connect, auto exit accept/connect,
relay connector) was hardcoding NodeRole::Entry for the peer. Now uses
peer_role_from_capabilities() which checks the handshake: both
listen+connect → Relay, tun_capable → Entry, otherwise → Exit.
Moved role_from_capabilities to mode/mod.rs as
peer_role_from_capabilities so all modes share it.
Relay connector now resolves the peer handshake to get the peer's
name and capabilities — no more showing raw address as peer name.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments