diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-10-16 17:24:07 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-10-16 17:48:26 +0200 |
commit | 5c5fce352ffcde33d8daf9d76805621afe6ce685 (patch) | |
tree | 9700faa25fd0c4bad0021fd1c65c73dd38f59a1d /libplanfahr/providers | |
parent | 73c9edfb68afcfcba35d5f7ac91dbdcf1a6f26a4 (diff) |
Set the proxy on the Soup session
so we use a set proxy.
Diffstat (limited to 'libplanfahr/providers')
-rw-r--r-- | libplanfahr/providers/hafas-bin6.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libplanfahr/providers/hafas-bin6.c b/libplanfahr/providers/hafas-bin6.c index 2b2ac1b..6d50c9d 100644 --- a/libplanfahr/providers/hafas-bin6.c +++ b/libplanfahr/providers/hafas-bin6.c @@ -888,6 +888,11 @@ lpf_provider_hafas_bin6_activate (LpfProvider *self, GObject *obj) if (debugstr && strstr (debugstr, "provider")) priv->debug = TRUE; + g_object_set (G_OBJECT (priv->session), + SOUP_SESSION_PROXY_RESOLVER, + g_proxy_resolver_get_default(), + NULL); + dir = g_file_new_for_path (priv->logdir); g_file_make_directory_with_parents (dir, NULL, NULL); g_object_unref (dir); |