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

Get SOCKS5 port from Tor daemon #2122

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

alvasw
Copy link
Contributor

@alvasw alvasw commented Apr 26, 2024

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: #1894

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
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

int port = Integer.parseInt(portString);
return Optional.of(port);
} catch (IOException e) {
return Optional.empty();
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we log an error or warning?

@djing-chan djing-chan merged commit 71e7d6c into bisq-network:main Apr 27, 2024
32 checks passed
@alvasw alvasw deleted the get_socks_port_from_tor_daemon 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants