[telepathy-gabble/telepathy-gabble-0.8] ft-channel: query SOCKS5 proxy when creating an outgoing FT
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Nov 26 07:55:03 PST 2009
We'll need proxies when we'll offer the file.
---
src/ft-channel.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/ft-channel.c b/src/ft-channel.c
index 40b711e..747a0ef 100644
--- a/src/ft-channel.c
+++ b/src/ft-channel.c
@@ -494,6 +494,13 @@ gabble_file_transfer_channel_constructor (GType type,
tp_handle_inspect (contact_repo, self->priv->initiator),
self->priv->filename, self->priv->size);
+ if (self->priv->initiator == base_conn->self_handle)
+ {
+ /* Outgoing FT , we'll need SOCK5 proxies when we'll offer the file */
+ gabble_bytestream_factory_query_socks5_proxies (
+ self->priv->connection->bytestream_factory);
+ }
+
return obj;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list