LvMalware / cf-proxy

Proxy requests through Cloudflare workers
11 stars 4 forks source link

Does this work? #1

Open TheHamkerCat opened 2 months ago

TheHamkerCat commented 2 months ago

I'm getting these errors

http

  $ bun proxy.js -a xxx -p 1080 http someInstanceHere.workers.dev

  $ curl --proxy http://localhost:1080 http://ipinfo.io -H "Authorization: xxx"

  >> curl: (52) Empty reply from server

socks

  $ bun proxy.js -a xxx -p 1080 socks someInstanceHere.workers.dev

  $ curl --proxy socks5://localhost:1080 http://ipinfo.io -H "Authorization: xxx"

  >> curl: (97) connection to proxy closed
LvMalware commented 1 week ago

Hello @TheHamkerCat

It does work. Unless the site is behind CloudFlare, in which case the workers cannot connect to it.

In your case, you are just typing the wrong address. Instead of http://ipinfo.io, try https://ipinfo.io (the HTTPS version of the website) and make sure your worker instance is running and the authorization token is correct.

Let me know if it works.

Best regards,