Hello. I'm trying to use QUdpSocket with Socks5 proxy, but it doesn't work, when I connect, there are always errors. I do this: In main:
QNetworkProxy proxy; proxy.setType(QNetworkProxy::Socks5Proxy); proxy.setHostName("37.59.13.53"); proxy.setPort(45912); QNetworkProxy::setApplicationProxy(proxy); In the socket class constructor:
sampSocket = new QUdpSocket(this); bool is = socket->bind(QHostAddress::LocalHost);//ΠΡΠΎΠ±ΠΎΠ²Π°Π» Π²ΡΠ΅ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΡΠ΅ Π²Π°ΡΠΈΠ°ΡΠΈΠΈ, ΠΈΡΠΎΠ³ ΠΎΠ΄ΠΈΠ½. Sometimes gives an error
"Connection to proxy closed prematurely"
All proxies are working, checked by a web checker and used them in a telegram. Please tell me what I'm doing wrong.
UPD The problem seems to be in the proxies themselves. But to find proxies that work with UDP is almost unreal ....
