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

Let Tor pick SOCKS5 port #2123

Merged
merged 2 commits into from
Apr 27, 2024
Merged

Conversation

alvasw
Copy link
Contributor

@alvasw alvasw commented Apr 26, 2024

To select the Tor SOCKS5 port, we bind to a random port, close it and pass the port number to Tor. It can happen that Tor tries to bind to the port before it is closed. In this case, the Tor startup will fail.

Ref: #1798

alvasw added 2 commits April 26, 2024 18:17
We don't know the SOCKS5 port when we're using to a running Tor daemon.
This change is needed to support external Tor instances.

Ref: bisq-network#1894
To select the Tor SOCKS5 port, we bind to a random port, close it and
pass the port number to Tor. It can happen that Tor tries to bind to
the port before it is closed. In this case, the Tor startup will fail.

Ref: bisq-network#1798
@alvasw alvasw added bug Something isn't working tor labels Apr 26, 2024
Copy link
Contributor

@djing-chan djing-chan left a comment

Choose a reason for hiding this comment

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

utACK

@djing-chan djing-chan merged commit 2057d99 into bisq-network:main Apr 27, 2024
16 checks passed
@alvasw alvasw deleted the let_tor_pick_socks5_port branch May 21, 2024 17:40
@djing-chan djing-chan added this to the 2.0.4 milestone May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants