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

fix: actually allow to disable DERP #1560

Merged
merged 6 commits into from
Oct 2, 2023
Merged

fix: actually allow to disable DERP #1560

merged 6 commits into from
Oct 2, 2023

Conversation

Frando
Copy link
Member

@Frando Frando commented Oct 2, 2023

Description

node::Builder::disable_derp is broken. We do not call MagicEndpointBuilder::disable_derp for that, and at some point we changed the magic endpoint to default to the default, n0-supplied derp servers.

This fixes this through a DerpMode enum that is much more explicit I think.

Fixes #1558

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.

@b5 b5 assigned Frando Oct 2, 2023
Copy link
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

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

agreed on DerpMap::emtpy(), that's been confusing for a while. but overall this i much better than what i did before!

iroh/examples/sync.rs Outdated Show resolved Hide resolved
@Frando Frando enabled auto-merge October 2, 2023 20:44
@Frando Frando added this pull request to the merge queue Oct 2, 2023
Merged via the queue into main with commit cf9abc0 Oct 2, 2023
15 checks passed
@dignifiedquire dignifiedquire deleted the fix-set-derp-mode branch October 2, 2023 23:42
@b5 b5 added this to the v0.7.0 milestone Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Bug: node::Builder::disable_derp is broken
4 participants