changeset 9d43ef511f51 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=9d43ef511f51 description: handle ft_send_local_ips option with jingle FT
diffstat:
src/common/jingle_transport.py | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-)
diffs (49 lines):
diff -r 8c052a48f991 -r 9d43ef511f51 src/common/jingle_transport.py --- a/src/common/jingle_transport.py Thu Jun 14 12:45:11 2012 -0400 +++ b/src/common/jingle_transport.py Thu Jun 14 19:46:17 2012 +0200 @@ -78,7 +78,7 @@ Return the list of transport candidates from a transport stanza """ return [] - + def set_connection(self, conn): self.connection = conn if not self.sid: @@ -89,7 +89,7 @@
def set_our_jid(self, jid): self.ourjid = jid - + def set_sid(self, sid): self.sid = sid
@@ -168,6 +168,9 @@ self.candidates.append(cand)
def _add_local_ips_as_candidates(self): + if not gajim.config.get_per('accounts', self.connection.name, + 'ft_send_local_ips'): + return if not self.connection: return local_ip_cand = [] @@ -259,7 +262,7 @@ self.file_props.session_sid) if sesn is None: return - + iq = xmpp.Iq(to=proxy['jid'], frm=self.ourjid, typ='set') auth_id = "au_" + proxy['sid'] iq.setID(auth_id) @@ -321,7 +324,7 @@ transport.setAttr('block-size', self.block_sz) transport.setAttr('sid', self.sid) return transport - + try: import farstream except Exception: