Allow specifying allowed source address(es) #1064
Labels
effort/days
Estimated to take multiple days, but less than a week
exp/expert
Having worked on the specific codebase is important
kind/enhancement
A net-new feature or improvement to an existing feature
Currently, it's possible to specify listen addresses, but not source addresses for dials. It would be nice to be able to actually specify source addresses.
Specifically:
At the moment, the best solution here is to sandbox your application (i.e., use a network namespace) so libp2p simply doesn't have access to interfaces it's not allowed to use. Furthermore, restricting the application to a single interface/source address isn't something go-libp2p can actually enforce (i.e., some transports may ignore the setting and/or have bugs). Even if/when this feature is implemented, users should continue to sandbox libp2p if they don't want it to use/see some set of interfaces.
See #1063 for motivation.
The text was updated successfully, but these errors were encountered: