Answer the question
In order to leave comments, you need to log in
How to use SOCKS5 in Golang?
I'm trying to work with a bot in TG, I'm trying this code:
dialer, err := proxy.SOCKS5("tcp", prox.IP+":"+prox.Port, nil, proxy.Direct)
if err != nil {
log.Fatalln("can't connect to the proxy:", err)
}
client2 = &http.Client{
Transport: &http.Transport{
Dial: dialer.Dial,
},
}
socks connect tcp 82.196.11.105:1080->api.telegram.org:443: unexpected EOF
Answer the question
In order to leave comments, you need to log in
Perhaps you all do this and the RKN does everything this way, try at least running a proxy on a non-standard port and first try connecting to something less blocked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question