Skip to content

Conversation

@sgj3
Copy link
Contributor

@sgj3 sgj3 commented Dec 8, 2020

This PR fixes #1538. It:

  • Gracefully changes the config option 'onionservicesonly=true' to 'onlynet=onion', upgrading old config directives upon GUI settings dialog "OK"
  • When onion services only is requested, prevents bootstrapping from a non-onion node
  • When a trusted peer is set, prevents bootstrapping from any other node

This PR does not add any warning or error dialogs, which would be useful for a user unknowingly unable to bootstrap because they set 'onlynet=onion'.

(Please ignore #1693. I accidentally hit ENTER when typing the title, which GitHub oh-so-helpfully interpreted as a click on "Create pull request".)

sgj3 added 2 commits December 8, 2020 01:19
…onion'.

Old-style 'onionservicesonly' is deprecated but still accepted.
The configuration option will be upgraded upon the first GUI settings update.
@PeterSurda
Copy link
Member

I need more time to look at it more closely, but upon first glance it looks ok, just fix the code quality issues and keep it rebased so that I can merge it when ready.

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.

Add onlynet=onion config option

2 participants