diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-25 00:50:23 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-25 00:50:23 +0200 |
commit | f1f7b5e5d7f99419fc9b1a3d3ee3bce6e8602b10 (patch) | |
tree | 9dba333dc27dcab877420e945c54067155ae973b /protocols | |
parent | 2945c6ff5d1848f6d8e51a0d804a2d769e6894a7 (diff) |
Take the local address from the IM/IRC connection when setting up a listening
socket for file transfers.
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/jabber/s5bytestream.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, "<local>" ) == 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 ); |