|
|
@ -28,13 +28,15 @@ namespace proxy { |
|
|
|
virtual List proxies(const std::string& url) { |
|
|
|
virtual List proxies(const std::string& url) { |
|
|
|
|
|
|
|
|
|
|
|
qDebug()<<"************ QTPROXY ********************"; |
|
|
|
qDebug()<<"************ QTPROXY ********************"; |
|
|
|
qDebug()<<"************ QTPROXY ********************"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List res; |
|
|
|
List res; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
qDebug()<<"Query System Proxies for "<<QString::fromStdString(url) |
|
|
|
|
|
|
|
<<" ..."; |
|
|
|
QList<QNetworkProxy> proxies |
|
|
|
QList<QNetworkProxy> proxies |
|
|
|
(QNetworkProxyFactory::systemProxyForQuery |
|
|
|
(QNetworkProxyFactory::systemProxyForQuery |
|
|
|
(QNetworkProxyQuery(QUrl(QString::fromStdString(url))))); |
|
|
|
(QNetworkProxyQuery(QUrl(QString::fromStdString(url))))); |
|
|
|
|
|
|
|
qDebug()<<"Found "<<proxies.size()<<" System Proxies ..."; |
|
|
|
|
|
|
|
|
|
|
|
for (QList<QNetworkProxy>::const_iterator proxy(proxies.begin()); |
|
|
|
for (QList<QNetworkProxy>::const_iterator proxy(proxies.begin()); |
|
|
|
proxy!=proxies.end(); ++proxy) { |
|
|
|
proxy!=proxies.end(); ++proxy) { |
|
|
|