[Spice-devel] [PATCH spice-gtk] session: Enable proxy when requested

Pavel Grunt pgrunt at redhat.com
Tue Jun 2 08:49:14 PDT 2015


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 f85e5c1..778d82a 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -2132,7 +2132,7 @@ GSocketConnection* spice_session_channel_open_host(SpiceSession *session, SpiceC
     }
 
     open_host.client = g_socket_client_new();
-    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);
 
     g_idle_add(open_host_idle_cb, &open_host);
-- 
2.4.2



More information about the Spice-devel mailing list