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

make bitcoind accept 127.0.0.1 and 0.0.0.0 #2

Merged
merged 1 commit into from Oct 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 8 additions & 5 deletions usr/share/doc/onion-grater-merger/examples/40_bitcoind.yml
Expand Up @@ -14,8 +14,11 @@

## Bitcoin default P2P ports
## Listening ports: main(8333) testnet(18333) signet(38333) regtest(18444)
## Binding ports: {listening_port} + 1
## Onion binding port: {listening_port} + 1

## Bitcoind defaults to "bind=127.0.0.1:8334=onion". That won't work with
## Whonix because it will not be listening on the internal network interface.
## Listen on onion by setting in your bitcoin.conf "bind=0.0.0.0:8334=onion".

---
- exe-paths:
Expand All @@ -27,13 +30,13 @@
commands:
ADD_ONION:
## {{{
- pattern: 'NEW:(\S+) Port=8333,127.0.0.1:8334'
- pattern: 'NEW:(\S+) Port=8333,(?:127.0.0.1|0.0.0.0):8334'
replacement: 'NEW:{} Port=8333,{client-address}:8334 Flags=DiscardPK'
- pattern: 'NEW:(\S+) Port=18333,127.0.0.1:18334'
- pattern: 'NEW:(\S+) Port=18333,(?:127.0.0.1|0.0.0.0):18334'
replacement: 'NEW:{} Port=18333,{client-address}:18334 Flags=DiscardPK'
- pattern: 'NEW:(\S+) Port=38333,127.0.0.1:38334'
- pattern: 'NEW:(\S+) Port=38333,(?:127.0.0.1|0.0.0.0):38334'
replacement: 'NEW:{} Port=38333,{client-address}:38334 Flags=DiscardPK'
- pattern: 'NEW:(\S+) Port=18444,127.0.0.1:18445'
- pattern: 'NEW:(\S+) Port=18444,(?:127.0.0.1|0.0.0.0):18445'
replacement: 'NEW:{} Port=18444,{client-address}:18445 Flags=DiscardPK'
## }}}