qt6 socket 不使用代理 socket error: The proxy type is invalid for this operation
qt 5.8之后,socket默认使用代理
参考
https://www.cnblogs.com/cppskill/p/11730452.html#:~:text=%E5%9C%A8%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0%E9%87%8C%E5%AE%9A%E4%B9%89,Proxy%29%3B%E3%80%82
#include <QNetworkProxy>
socket = new QTcpSocket();
socket->setProxy(QNetworkProxy::NoProxy);