Skip to content

Conversation

@momoshell
Copy link
Contributor

@momoshell momoshell commented Nov 30, 2025

Description

Implementation now mirrors the TCP transport's approach by maintaining a centralized registry of listening addresses. When dialing, the transport queries this registry to find a suitable listener socket that matches the destination's IP version and loopback status.

Related: #4259

Notes & open questions

It could be optimized further, where we could query the OS routing table to determine the optimal source IP for reaching a destination, then find a listener bound to that IP. This provides the most accurate routing decisions because the OS kernel knows all routes, VPNs, policies, etc.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

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.

1 participant