avpnusr / torprivoxy

Tor and Privoxy in docker container
26 stars 6 forks source link

Privoxy? #13

Closed dngray closed 2 years ago

dngray commented 2 years ago

Curious to know why you install Privoxy when Tor can actually act as a HTTP proxy on it's own without privoxy, polipo etc provided that HTTPTunnelPort is set.

Edit: looks like even with HTTPTunnelPort, you still need Privoxy in some situations as HTTPTunnelPort only supports HTTP CONNECT, and can't connect you to .onion services.

The usecase I used to have for this was running mpv with youtube-dl:

/usr/bin/mpv --http-proxy=http://127.0.0.1:9080 "https://www.youtube.com/watch?v=9vgnXRypc4o

However with yt-dlp:

/usr/bin/mpv --ytdl-raw-options=proxy=\"socks5://127.0.0.1:9050\" "https://www.youtube.com/watch?v=9vgnXRypc4o"

That supports socks5 directly which is preferred, (also works on .onion invidious instances).