Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http proxy support? #81

Open
TNTcraftHIM opened this issue Apr 27, 2023 · 1 comment
Open

Http proxy support? #81

TNTcraftHIM opened this issue Apr 27, 2023 · 1 comment

Comments

@TNTcraftHIM
Copy link

Can we add a http proxy in config.json? Cuz some of the server will be blocked by cloudflare when sending request

@giorgi-o
Copy link
Owner

Proxies are already supported, but it's in beta, and undocumented (until now). Here's how to get it working:

  • Make sure your proxy is configured to use the right TLS ciphers and sigalgs, to not get Cloudflare'd. This means you can't just use any off-the-shelf proxy for this unfortunately. Here are the values you should use.
  • Also note that only HTTPS proxies are supported at the moment. Not HTTP, not SOCKS.
  • Create the data/proxies.txt file
  • On each new line, put the proxy in the format host:port, like 1.2.3.4:5678 or proxy.com:4321
  • If the proxy needs a username/password, put it in the format proxy.com:4321:https:username:password
  • Restart the bot for it to realise that it should use a proxy now

It might work. I don't have any proxies to test it with, so it probably won't be as optimised and reliable as I'd like. Personally, I still think you are better off finding another VPS provider that isn't blocked by Cloudflare, but it's up to you of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants