You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a server with multiple IPV4, i would like to launch the proxy on all available ips / interfaces instead of 0.0.0.0, so i can use more than 7-8 bots (more than this number will make the ip banned by cloudflare)
EG: i can use a specific ip with curl like curl --interface vint0 ifconfig.me
Edit: i have tested by changing the code:
panic(fasthttp.ListenAndServe(fmt.Sprintf(":%d", port), router.HandleRequest))
with panic(fasthttp.ListenAndServe(fmt.Sprintf("x.x.x.x:%d", port), router.HandleRequest))
but it doesn't works, the ip used is still my "default" ip (i can see that with the cloudflare ban which display the ip used)
I don't know if you can use something like SO_BINDTODEVICE with your go libs ?
Just read this again, so there are two HTTP clients that proxy using. One is from kucoin SDK(used for candles) and the other is fasthttp(used for proxying transparently other requests). The first one does not allow to setting a Localaddr
Hi,
I have a server with multiple IPV4, i would like to launch the proxy on all available ips / interfaces instead of 0.0.0.0, so i can use more than 7-8 bots (more than this number will make the ip banned by cloudflare)
EG: i can use a specific ip with curl like
curl --interface vint0 ifconfig.me
Edit: i have tested by changing the code:
panic(fasthttp.ListenAndServe(fmt.Sprintf(":%d", port), router.HandleRequest))
with
panic(fasthttp.ListenAndServe(fmt.Sprintf("x.x.x.x:%d", port), router.HandleRequest))
but it doesn't works, the ip used is still my "default" ip (i can see that with the cloudflare ban which display the ip used)
I don't know if you can use something like
SO_BINDTODEVICE
with your go libs ?Edit2: Found that, idk if it can help you: valyala/fasthttp#759
The text was updated successfully, but these errors were encountered: