Commit f42fd9a0 authored by Martin Kampas's avatar Martin Kampas

[ssu] Allow to use ssu behind proxy without connman. Contribute to JB#40059

E.g. inside platform SDK chroot.
parent c4875af8
......@@ -7,14 +7,24 @@
#ifndef _LibSsuNetworkProxy_H
#define _LibSsuNetworkProxy_H
#include <dlfcn.h>
#include <QtCore/QtGlobal>
#include <QtNetwork/QNetworkProxyFactory>
* Set application proxy if the required library is found, otherwise
* do nothing.
* Set application proxy. First check \c http_proxy environment variable, then try to get
* proxy configuration from connman.
inline void set_application_proxy_factory()
if (qEnvironmentVariableIsSet("http_proxy")) {
qDebug() << "Got http_proxy from environment, will not talk to connman";
void *proxylib = dlopen("", RTLD_LAZY);
if (proxylib) {
typedef void (*ssuproxyinit_t)();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment