RedReader icon indicating copy to clipboard operation
RedReader copied to clipboard

Use SOCKS5 for Tor rather than HTTP proxy

Open lu-ckystars opened this issue 1 year ago • 3 comments

its been this way for a long time. i use the alpha version but the regular does the same. I'm pretty sure the rest of the traffic does get sent over for, but perhaps in a weird way: going to external site

would it not be better to have it using orbots socks5?

lu-ckystars avatar Apr 14 '24 20:04 lu-ckystars

There's some example code here for using a SOCKS proxy with an Android WebView: https://github.com/guardianproject/NetCipher/blob/master/sample-webviewclient/src/sample/netcipher/webviewclient/GenericWebViewClient.java#L56

We'll also need to update the OkHTTP code, possibly to use a custom socket factory.

QuantumBadger avatar May 06 '24 20:05 QuantumBadger

This was the original reason why a SOCKS proxy wasn't used: https://github.com/square/okhttp/issues/2315

QuantumBadger avatar Jul 06 '24 15:07 QuantumBadger