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

feat: filter out private and loopback addresses #57

Merged
merged 2 commits into from
Apr 11, 2024
Merged

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Mar 27, 2024

Closes #28.

Comment on lines +420 to +422
type sanitizeRouter struct {
router
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other option is to apply filterPrivateMultiaddr directly in libp2pRouter, and the iter.Maps in clientRouter.

@hacdias hacdias self-assigned this Mar 27, 2024
@hacdias hacdias requested a review from lidel March 27, 2024 11:10
server_routers.go Outdated Show resolved Hide resolved
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (haven't run locally to validate, but if you have and it looks good then works for me)

@hacdias hacdias merged commit 581a8ae into main Apr 11, 2024
@hacdias hacdias deleted the sanitize-router branch April 11, 2024 15:09
@2color
Copy link
Member

2color commented Apr 12, 2024

@hacdias What's the best way to track whether changes to Someguy have been deployed yet to the hosted delegated routing endpoint?

@hacdias
Copy link
Member Author

hacdias commented Apr 12, 2024

@2color you can check the version here: https://delegated-ipfs.dev/version - albeit it seems off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

Filter out un-actionable provider records
3 participants