| 28 | m_proxy = proxy; |
| 29 | } |
| 30 | virtual QList<QNetworkProxy> queryProxy(const QNetworkProxyQuery &query) |
| 31 | { |
| 32 | // Ignore localhost |
| 33 | QList<QNetworkProxy> proxies; |
| 34 | QString host = query.peerHostName(); |
| 35 | if (host == QStringLiteral("localhost") || |
| 36 | host == QStringLiteral("ip6-localhost") || |
| 37 | host == QStringLiteral("ip6-loopback") || |
| 38 | host == QStringLiteral("127.0.0.1") || |
| 39 | host == QStringLiteral("::1")) |
| 40 | proxies << QNetworkProxy(QNetworkProxy::NoProxy); |
| 41 | else |
| 42 | proxies << m_proxy; |
| 43 | return proxies; |
| 44 | } |
| 45 | }; |
| 46 | |
| 47 |
nothing calls this directly
no outgoing calls
no test coverage detected