From f1f7b5e5d7f99419fc9b1a3d3ee3bce6e8602b10 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 25 Jul 2010 00:50:23 +0200 Subject: Take the local address from the IM/IRC connection when setting up a listening socket for file transfers. --- protocols/jabber/s5bytestream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/jabber/s5bytestream.c b/protocols/jabber/s5bytestream.c index 6759b78b..3304d99e 100644 --- a/protocols/jabber/s5bytestream.c +++ b/protocols/jabber/s5bytestream.c @@ -910,7 +910,7 @@ void jabber_si_set_proxies( struct bs_transfer *bt ) *next++ = '\0'; if( strcmp( proxy, "" ) == 0 ) { - if( ( tf->fd = ft_listen( &tf->saddr, host, port, FALSE, &errmsg ) ) != -1 ) { + if( ( tf->fd = ft_listen( &tf->saddr, host, port, jd->fd, FALSE, &errmsg ) ) != -1 ) { sh = g_new0( jabber_streamhost_t, 1 ); sh->jid = g_strdup( tf->ini_jid ); sh->host = g_strdup( host ); -- cgit v1.2.3