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 port collisions in Brave #734

Merged
merged 3 commits into from
Jul 16, 2019
Merged

Fix port collisions in Brave #734

merged 3 commits into from
Jul 16, 2019

Conversation

lidel
Copy link
Member

@lidel lidel commented Jul 15, 2019

Part of the effort to run embedded js-ipfs in Brave 🦁 #716

fix(brave): no port collisions

Before starting embedded js-ipfs we now check if API and Gateway ports are free.
If not, we find available ones and update the config.

This way user does not need to deal with "port taken" errors and
embedded node provides seamless experience without surprises.

fix(brave): persist External node config

Embedded node used same config keys as External one. 
When switching between External and Embedded in Brave
we now persist the old (External) config and restore it when user
switched back to External node type.

In current implementation the Embedded node uses same config keys
as External one. When switching between External and Embedded in Brave
we now persist the old (External) config and restore it when user
switched back to External node type.
Before starting embedded js-ipfs we now check if API and Gateway ports are free.
If not, we find available ones and update the config.

This way user does not need to deal with "port taken" errors and
embedded node provides seamless experience without surprises.
@lidel lidel force-pushed the fix/remember-external-gateway branch from b03f7ea to b48e643 Compare July 16, 2019 12:25
@lidel lidel merged commit 2a70ff6 into master Jul 16, 2019
@lidel lidel deleted the fix/remember-external-gateway branch July 16, 2019 21:56
@lidel lidel added the area/brave Issues related to Brave Browser label Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/brave Issues related to Brave Browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant