Add basic proxy support
This commit is contained in:
parent
8f239b4a95
commit
1bd6a61e5a
@ -42,6 +42,8 @@ class ProxyFactory(QNetworkProxyFactory):
|
|||||||
"""
|
"""
|
||||||
proxy = config.get('network', 'proxy')
|
proxy = config.get('network', 'proxy')
|
||||||
if proxy is None:
|
if proxy is None:
|
||||||
|
# config.get returns a QNetworkProxy for all cases, except when we
|
||||||
|
# should use the system proxy -- then it returns None.
|
||||||
return QNetworkProxyFactory.systemProxyForQuery(query)
|
return QNetworkProxyFactory.systemProxyForQuery(query)
|
||||||
else:
|
else:
|
||||||
return [proxy]
|
return [proxy]
|
||||||
|
Loading…
Reference in New Issue
Block a user