Rapsssito / react-native-tcp-socket

React Native TCP socket API for Android, iOS & macOS with SSL/TLS support.
MIT License
315 stars 80 forks source link

TOR support #76

Closed Overtorment closed 3 years ago

Overtorment commented 4 years ago

Would be nice to be able to connect to .onion hosts through TOR network

Rapsssito commented 4 years ago

@Overtorment, I will take a look. I don't have much experience with TOR in the socket level, any help is greatly appreciated!

Rapsssito commented 4 years ago

@Overtorment, I look it up, but sadly it is out of the scope of this module. react-native-tcp-socket aims to provide the lowest level TCP socket API for Android & iOS, but TOR requires protocols that are built on top of TCP.

I could set up CloudFlare's TOR DNS for .onion domains, but the connection after that would be direct with the server IP (which defeats the whole purpose of TOR).

However, someone could build a tor-request like library for React Native using react-native-tcp-socket under the hood.