-
Notifications
You must be signed in to change notification settings - Fork 4
Only supports Tor target addresses #1
Comments
We don't necessarily have to bail if it is something else other than a tor address right? We could just pass on whatever we got passed. There are probably more applications that can run over socks5 so over time, this list could be extended. I am thinking of something like: let dest = match segment {
"onion" => parse_tor_address,
"foobar" => parse_foo_bar_address,
_ => addr
}; |
I guess this could also be made even more dynamical by parsing functions in the constructor and store them as |
Thanks for the comment. I'm not personally super motivated to extend this crate for use with other proxies since I have no need for it. I wanted to say, I appreciate you taking the time to think about this issue though. |
No sweat, no immediate need on my side either but I was interested in thinking about the problem :) |
Problem
Currently the
dial
method of the transport converts the inputMultiaddr
into a string address that is in the form thatTor
expects.Onion v3 Multiaddr:
/onion3/7gr3dngwhk74thi4vv6bm3v3bicaxe4apvcemoxo3hadpvsyfifjqnid:7
Tor address:
7gr3dngwhk74thi4vv6bm3v3bicaxe4apvcemoxo3hadpvsyfifjqnid.onion:7
Clearly this address conversion will not work for non-tor proxies.
Solution discussion
In order to support other SOCKS5 proxies we need to control how the multi address is converted into an address for the target SOCKS5 proxy. See the
dial
method, specifically:This functionality will somehow need to be made configurable.
The text was updated successfully, but these errors were encountered: