-
Notifications
You must be signed in to change notification settings - Fork 382
allow binding to an interface instead of an IP address #3218
Copy link
Copy link
Closed
Labels
c-irohFunctionality of the core iroh crate.Functionality of the core iroh crate.featNew feature or requestNew feature or request
Description
Magicsock::listen currently supports either listening on a specific ipv4 and/or ipv6 address.
However, binding to 0.0.0.0, either via None or passing that explicitly, will cause it to bind across multiple interfaces.
I have a use-case where I want to force Iroh connections through one or more specific network interface(s).
My only option right now is to first query those interface(s) for their IP address(es), and then pass one of them to Magicsock.
Therefore, I currently cannot bind on two interfaces (both v4 or v6) while avoiding a third.
I would love the ability to bind to an arbitrary list of interfaces, each on v4, v6, or both.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c-irohFunctionality of the core iroh crate.Functionality of the core iroh crate.featNew feature or requestNew feature or request
Type
Projects
Status
✅ Done