MCPcopy Create free account
hub / github.com/coslyk/moonplayer / queryProxy

Method queryProxy

src/accessManager.cpp:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected