comit-network / rust-libp2p-tokio-socks5

Libp2p transport for sending TCP traffic via a SOCKS5 proxy e.g., over Tor network.
GNU General Public License v3.0
10 stars 4 forks source link

Remove `onion_map` #2

Open thomaseizinger opened 3 years ago

thomaseizinger commented 3 years ago

Looking at the code I don't understand why we are passing the onion address to the transport? There is no validation whatsoever. The address is only used to determine the port that is being used to listen on.

I think we should just passing in a regular multi-address like /ip4/127.0.0.1/tcp/7777 to listen on.