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

net: Provide a function to test for unroutable addresses #234

Closed
sukunrt opened this issue Feb 9, 2024 · 1 comment
Closed

net: Provide a function to test for unroutable addresses #234

sukunrt opened this issue Feb 9, 2024 · 1 comment

Comments

@sukunrt
Copy link
Member

sukunrt commented Feb 9, 2024

We have IsPublicAddr and IsPrivateAddr. It would be useful to have IsUnroutableAddr.

see: libp2p/go-libp2p#2703

@sukunrt
Copy link
Member Author

sukunrt commented Feb 12, 2024

Unroutable is not a good idea. Current unroutable definition is a bit incorrect too as it considers localhost, link local etc addresses as "routable" and all multicast as "unroutable". It should ideally be reachable / diallable or valid possibly. However the changes I need are in #235. So I'm closing this.

@sukunrt sukunrt closed this as completed Feb 12, 2024
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

No branches or pull requests

1 participant