[telepathy-gabble/master] tube-dbus: query SOCKS5 proxy when creating a 1-1 D-Bus tube

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Nov 26 05:56:29 PST 2009


We'll need proxies when we'll offer the tube.
---
 src/tube-dbus.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/tube-dbus.c b/src/tube-dbus.c
index 9db9f19..bb49618 100644
--- a/src/tube-dbus.c
+++ b/src/tube-dbus.c
@@ -955,6 +955,14 @@ gabble_tube_dbus_constructor (GType type,
       priv->reassembly_bytes_needed = 0;
 
       g_assert (priv->muc == NULL);
+
+      if (priv->requested)
+        {
+          /* We created this outgoing 1-1 D-Bus tube and so will need SOCKS5
+           * proxies when we'll offer it. */
+          gabble_bytestream_factory_query_socks5_proxies (
+              priv->conn->bytestream_factory);
+        }
     }
 
   /* Tube needs to be offered if we initiated AND requested it. Being
-- 
1.5.6.5




More information about the telepathy-commits mailing list