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

Support tor-specific socks error messages #15

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

stevenengler
Copy link
Contributor

The socks port 'ExtendedErrors' flag must be set in the tor configuration for tor to return these error codes.

@stevenengler stevenengler added the enhancement New feature or request label Sep 15, 2021
@stevenengler stevenengler self-assigned this Sep 15, 2021
Copy link
Member

@robgjansen robgjansen left a comment

Choose a reason for hiding this comment

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

Worth it if it helps us debug Tor connection errors! :)

@@ -1121,6 +1121,38 @@ static TGenEvent _tgentransport_receiveSocksResponseStatus(TGenTransport* transp
g_string_append_printf(messageBuffer, "address type not supported");
break;
}
case 0xF0: {
Copy link
Member

Choose a reason for hiding this comment

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

If we connect to a non-Tor SOCKS proxy (which I realize is unlikely given tgen's main purpose), is it possible that they send us these error codes but they have a different meaning? Might be worth a comment in the code?

The socks port 'ExtendedErrors' flag must be set in the tor
configuration for tor to return these error codes.
@stevenengler stevenengler merged commit dc13e48 into shadow:main Oct 13, 2021
@stevenengler stevenengler deleted the socks-tor-errors branch October 13, 2021 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants