Skip to content

fix: disable SSL for .onion domains in SOCKSSocket.connectTo#75

Open
sneurlax wants to merge 1 commit into
Foundation-Devices:mainfrom
sneurlax:fix/socks-socket-onion-no-ssl
Open

fix: disable SSL for .onion domains in SOCKSSocket.connectTo#75
sneurlax wants to merge 1 commit into
Foundation-Devices:mainfrom
sneurlax:fix/socks-socket-onion-no-ssl

Conversation

@sneurlax

Copy link
Copy Markdown
Collaborator

Onion services are already end-to-end encrypted by the Tor protocol, so attempting a TLS handshake on top of a .onion connection is unnecessary and fails against services that do not present a certificate. Skip the SSL upgrade automatically when the target domain ends with .onion.

This comes from cypherstack/tor's divergences from your upstream Foundation-Devices/tor--we found this change useful and use it currently, but you can take it or leave it :)

Onion services are already end-to-end encrypted by the Tor protocol, so
attempting a TLS handshake on top of a .onion connection is unnecessary
and fails against services that do not present a certificate. Skip the
SSL upgrade automatically when the target domain ends with .onion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant