Skip to content

fix: error on no valid provs #1065

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

Merged
merged 2 commits into from
Mar 18, 2025
Merged

fix: error on no valid provs #1065

merged 2 commits into from
Mar 18, 2025

Conversation

guillaumemichel
Copy link
Contributor

Until now, when a client sends an ADD_PROVIDE with no valid provider (either not matching the client's peer id, or missing addresses), the DHT Server will behave as if the operation was successful.

This change makes the DHT Server error when no valid providers are provided, which will close the stream (same behavior as other errors).

@guillaumemichel guillaumemichel requested a review from a team as a code owner March 18, 2025 08:52
@guillaumemichel guillaumemichel merged commit 5cf1f18 into master Mar 18, 2025
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

Successfully merging this pull request may close these issues.

2 participants