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

Remove hardcoded DHT client routing #2152

Merged
merged 2 commits into from
May 23, 2022
Merged

Remove hardcoded DHT client routing #2152

merged 2 commits into from
May 23, 2022

Conversation

2color
Copy link
Member

@2color 2color commented May 20, 2022

Closes #1859

This PR removes the hard-coded dht client mode and instead relies on go-ipfs' defaults which test for the node's dialability and if so switch the DHT to server mode automatically.

A migration was added to remove the hard-coded routing configration from the users config.json.

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Thank you, LGTM (my rationale in #1859 (comment)).

If a user wants to change the default behavior, they still can do that on Settings screen, by explicitly setting Routing.Type to dhtclient, which is better UX than editing Electron app's internals :)

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.

Ask user if he want's to enable dht (instead of just running a client)
2 participants