Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple listen addresses for bind_address #15724

Open
sfan5 opened this issue Jan 28, 2025 · 0 comments
Open

Support multiple listen addresses for bind_address #15724

sfan5 opened this issue Jan 28, 2025 · 0 comments
Labels
Feature request Issues that request the addition or enhancement of a feature @ Network

Comments

@sfan5
Copy link
Collaborator

sfan5 commented Jan 28, 2025

Right now you can either:

  • listen on any address (incl. ipv6 if you use ipv6_server = 1)
  • listen on a specific ipv4 or ipv6

We should allow for more flexibility by allowing binding to multiple addresses.

There are two approaches we could take.

  1. permit at most one ipv4 and one ipv6 socket: this is easy to implement in the existing code since you can uniquely decide which packet should be received/sent from which socket. this will suffice in 99.9% use cases.
  2. total freedom: this requires more changes to the connection code to track which peer is using which socket.

previous work: #2604

@sfan5 sfan5 added @ Network Feature request Issues that request the addition or enhancement of a feature labels Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Issues that request the addition or enhancement of a feature @ Network
Projects
None yet
Development

No branches or pull requests

1 participant