Blob Blame History Raw
From bec4fee3966dc78e7214c4bb00c06b4f4ea3cb49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
Date: Tue, 1 Sep 2015 13:29:15 +0200
Subject: [PATCH 13/13] session: Enable proxy when requested

Disabling the proxy avoids usage of GProxyResolver to determine
the necessary proxy protocol and to do the proxy negotiation
---
 gtk/spice-session.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/spice-session.c b/gtk/spice-session.c
index 2a53230..4e41ced 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -1895,7 +1895,7 @@ GSocketConnection* spice_session_channel_open_host(SpiceSession *session, SpiceC
 
     open_host.client = g_socket_client_new();
 #if GLIB_CHECK_VERSION(2,26,0)
-    g_socket_client_set_enable_proxy(open_host.client, FALSE);
+    g_socket_client_set_enable_proxy(open_host.client, s->proxy != NULL);
     g_socket_client_set_timeout(open_host.client, SOCKET_TIMEOUT);
 #else
     open_host.timeout_id =
-- 
2.4.3