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

Tor bridges preferences fix #5966

Merged
merged 2 commits into from Jan 20, 2022
Merged

Tor bridges preferences fix #5966

merged 2 commits into from Jan 20, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jan 16, 2022

Fixes #5937

  • Postpone accessing preferences BridgeAddressProvider until needed by Tor. Previously they would be accessed too early when preferences had not yet been read from disk. Now we access them when Tor is started.

  • Force persistence write when editing Tor Bridge settings. This is necessary because Tor settings are edited before the app has completed startup and normally persistence is prohibited.


With this change it is possible to use Tor bridges when Bisq refuses to start with the default settings. A button to edit the Tor settings is shown after the startup times-out allowing Tor bridges to be chosen and to restart Bisq with the new settings.

image

After choosing Tor bridges, the setting will be used at next startup:

INFO  b.network.p2p.network.NewTor: Using bridges: obfs4 154.35.22.10:15937 

jmacxx added 2 commits January 16, 2022 11:38
…Tor.

Previously they would be accessed too early when preferences had not
yet been read from disk.  Now we access them when Tor is started.
This is necessary because Tor settings are edited before the app has
completed startup and normally persistence is prohibited.
@ripcurlx ripcurlx added this to the v1.8.2 milestone Jan 17, 2022
@ghost ghost mentioned this pull request Jan 17, 2022
Copy link
Contributor

@chimp1984 chimp1984 left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

utACK

@ripcurlx ripcurlx merged commit fd42c45 into bisq-network:master Jan 20, 2022
@ghost ghost deleted the tor_bridges_fix branch October 18, 2023 16:03
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.

Bisq doesn't save Tor settings
2 participants