diff options
author | Teemu Ikonen <tpikonen@mailbox.org> | 2023-01-07 22:32:30 +0200 |
---|---|---|
committer | Teemu Ikonen <tpikonen@mailbox.org> | 2023-01-12 17:53:30 +0200 |
commit | ca72db0f8b53deacb93f57f3015bc4c9ffc14335 (patch) | |
tree | 991ac448ba439d9b6383420f0fec935c1366c0ff | |
parent | a56f7c17bdc81fc6270c142a5cd9764cc5b83c38 (diff) | |
download | geoclue-ca72db0f8b53deacb93f57f3015bc4c9ffc14335.tar.gz |
Set libsoup session proxy resolver to NULL
Remove the soup_session_remove_feature_by_type () call, it always prints
a "No feature manager for feature of type 'GProxyResolver'" warning on
startup.
Disable proxy by setting the 'proxy-resolver' property of SoupSession to
NULL.
-rw-r--r-- | src/gclue-web-source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gclue-web-source.c b/src/gclue-web-source.c index 4e1368d..bd4b657 100644 --- a/src/gclue-web-source.c +++ b/src/gclue-web-source.c @@ -411,7 +411,7 @@ gclue_web_source_constructed (GObject *object) G_OBJECT_CLASS (gclue_web_source_parent_class)->constructed (object); priv->soup_session = soup_session_new (); - soup_session_remove_feature_by_type (priv->soup_session, G_TYPE_PROXY_RESOLVER); + soup_session_set_proxy_resolver (priv->soup_session, NULL); monitor = g_network_monitor_get_default (); priv->network_changed_id = |