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

Add --address, bind to specific address #84

Merged
merged 1 commit into from
Dec 17, 2020

Conversation

uhliksk
Copy link
Contributor

@uhliksk uhliksk commented Aug 6, 2020

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Works for Ubuntu 18.04, thank you!

@sipa
Copy link
Owner

sipa commented Dec 17, 2020

ACK bf40486

@sipa sipa merged commit c52f3db into sipa:master Dec 17, 2020
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 29, 2021
Summary:
Backport of sipa/bitcoin-seeder#84

Some configurations need to bind a specific address. See issues referenced in the original pull request.

I had to modify the original pull request to match the ABC code base.

Test Plan:
Test cases:
  ./bitcoin-seeder -host=localhost -ns=localhost [email protected] -port=5555
  ./bitcoin-seeder -host=localhost -ns=localhost [email protected] -port=5555 -address=127.0.0.1
  ./bitcoin-seeder -host=localhost -ns=localhost [email protected] -port=5555 -address=::1

Results of `sudo netstat -pln | grep 5555` for each test case:
  udp6       0      0 :::5555                 :::*                                18998/./bitcoin-see
  udp6       0      0 127.0.0.1:5555          :::*                                19121/./bitcoin-see
  udp6       0      0 ::1:5555                :::*                                19361/./bitcoin-see

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10186
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants