-
Notifications
You must be signed in to change notification settings - Fork 55
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 Tor Transport support #765
Conversation
16391db
to
eeccc0e
Compare
f50f58c
to
4b146ad
Compare
08bdb26
to
13e0508
Compare
2e22e85
to
3132813
Compare
libp2p/transports/tortransport.nim
Outdated
transp: StreamTransport, address: MultiAddress) {.async, gcsafe.} = | ||
|
||
let addressArray = ($address).split('/') | ||
let addressStr = addressArray[2].split(':')[0] & ".onion" |
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.
Could this be an index error in certain weird case?
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.
Not sure. Is it possible to do it in a safer way?
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.
if addressArray.len < 2: raise whatever
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.
done
f36e2f9
to
f9db6c9
Compare
83171a9
to
808f379
Compare
33bb876
to
06c1f31
Compare
0aa4d49
to
7618750
Compare
Description
Adding a libp2p transport for the Tor Network. We aim to support dialing and listening.
Dialing
The first version assumes a Tor Server is available on localhost and can accept SOCKS5 connections.
Listening
The first version assumes a Tor Server is available and Onion Services are configured to redirect traffic to TCP connections which the peer will be listening on.