dperson / torproxy

GNU Affero General Public License v3.0
515 stars 144 forks source link

Problems with 301 #22

Closed marcelinhov2 closed 6 years ago

marcelinhov2 commented 6 years ago

Hey, I'd try to run up an EC2 with your docker image.

When I did the curl test at my localhost and I got this: image

What I'd run: sudo docker run -it -p 8118:8118 -p 9050:9050 -d dperson/torproxy -l US

Did I make anything wrong?

marcelinhov2 commented 6 years ago

image

marcelinhov2 commented 6 years ago

I'd solved my Google Crawler using the flag --net=host, but the 301 error still for me.

If you wanna close, it's ok for me.

marcelinhov2 commented 6 years ago

Thanks for your project, God bless yourself hahahahahhahaha... I gonna keep 500USD/month at my wallet s2

dperson commented 6 years ago

It looks fine to me. The only thing I'd say is are you sure of the IP that you're connecting to the proxy at? It's easy to typo. I've confirmed that the exact command works for me (no 301 redirect):

curl -x http://localhost:8118 -L http://jsonip.com                                  
{"ip":"95.130.11.216","about":"/about","Pro!":"http://getjsonip.com","reject-fascism":"Support Planned Parenthood: https://www.plannedparenthood.org/get-involved"}
marcelinhov2 commented 6 years ago

@dperson Maybe you need to add this -L flag at your docs, am I right? Or it need to work without that too?

image

dperson commented 6 years ago

Done.