fix(iroh)!: Don't publish IP addresses from PkarrPublisher by default#4012
Merged
dignifiedquire merged 17 commits intomainfrom Mar 16, 2026
Merged
fix(iroh)!: Don't publish IP addresses from PkarrPublisher by default#4012dignifiedquire merged 17 commits intomainfrom
PkarrPublisher by default#4012dignifiedquire merged 17 commits intomainfrom
Conversation
|
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/4012/docs/iroh/ Last updated: 2026-03-16T12:07:23Z |
11 tasks
matheus23
pushed a commit
that referenced
this pull request
Mar 12, 2026
## Description Based on #4012 which is based on #4010 ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme)
Frando
reviewed
Mar 12, 2026
## Description Based on #4012 which is based on #4010 ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme)
`cargo make format`
b9071fc to
e2279ad
Compare
3 tasks
Contributor
|
the mdns example might need some updates |
Frando
reviewed
Mar 16, 2026
Frando
reviewed
Mar 16, 2026
Frando
reviewed
Mar 16, 2026
Member
Author
Does it? It seems to be working fine for me. |
Contributor
it does, but we don't need to remove filters anymore, we could keep using the preset now |
Member
Author
|
Updated the example. This should be ready. |
7bd8dc1 to
23a54e8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Partially reverts #3987 so we have more control over the default
AddrFilterfrom within thePkarrPublisherBuilder, and because we need it for pkarr, we keep this consistent across publishing services.As a bonus, now pure resolvers don't suddently have a builder method for address filtering that cannot apply to them (but they can still be wrapped in
FilteredAddressLookup, even though that's less discoverable).Fixes #4009
Breaking Changes
PkarrPublisherandDhtPublisherwill now by default publish only the relay URL, instead of detecting ifRelayMode::Disabledwas set and in such cases publishing IP addresses. We recommend users to explicitly set.addr_mode(AddrFilter::unfiltered())if they setrelay_mode(RelayMode::Disabled), to re-enable publishing IP addresses publicly.