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 Socks5 client plugin #21

Closed
wants to merge 17 commits into from
Closed

Conversation

david415
Copy link
Contributor

@david415 david415 commented Dec 5, 2015

I found warner's tor branch and was inspired to make this very minimal socks client plugin that only depends on txsocksx. I think getting this to work with tahoe would be a great first step towards native Tor integration from Tahoe-LAFS.

@david415 david415 changed the title Add client plugin for Tor Add Socks5 client plugin Dec 7, 2015

@implementer(IConnectionHintHandler)
class SocksPlugin:
def __init__(self, socks_host, socks_port, proxy_endpoint_generator=default_tcp4_endpoint_generator):

Choose a reason for hiding this comment

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

You can replace default_tcp4_endpoint_generator with endpoints.TCP4ClientEndpoint and remove the default_tcp4_endpoint_generator function above.

@FiloSottile
Copy link

We suggested changes in david415#1

@FiloSottile
Copy link

@warner this PR (plus the minor changes in david415#1) seems a good implementation of what we talked about, and should be enough to get Tahoe Tor support.

I guess the next step is merging/releasing this if you like it, and then we can move on to merging support in Tahoe.

@david415 david415 closed this Mar 28, 2016
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.

None yet

2 participants