Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Choose a better source port when possible #2

Closed
Stebalien opened this issue Jun 7, 2018 · 1 comment
Closed

Choose a better source port when possible #2

Stebalien opened this issue Jun 7, 2018 · 1 comment

Comments

@Stebalien
Copy link
Member

Specifically, on Linux, this library should:

  1. Use the netlink interface to figure out which local address the kernel would pick as the source address when dialing some destination address.
  2. Check to see if we're listening on any ports bound to that address. If so, use that as the source port when dialing.
@Stebalien
Copy link
Member Author

We now have a library, github.com/libp2p/go-netroute, that provides a cross-platform way to do this. We should switch to this library.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants