-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
Conflicts: foolscap/pb.py
|
||
@implementer(IConnectionHintHandler) | ||
class SocksPlugin: | ||
def __init__(self, socks_host, socks_port, proxy_endpoint_generator=default_tcp4_endpoint_generator): |
There was a problem hiding this comment.
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.
We suggested changes in david415#1 |
@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. |
Minor Socks plugin changes
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.