Http proxy support?
TNTcraftHIM opened this issue · 1 comments
TNTcraftHIM commented
Can we add a http proxy in config.json? Cuz some of the server will be blocked by cloudflare when sending request
giorgi-o commented
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
, like1.2.3.4:5678
orproxy.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.