changeset 44fc9372982c in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=44fc9372982c
description: do not traceback when we receive a corboned message sent without a to attribute. Fixes #8194
diffstat:
src/common/connection_handlers_events.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r c352fb5668bb -r 44fc9372982c src/common/connection_handlers_events.py
--- a/src/common/connection_handlers_events.py Tue Nov 24 20:16:00 2015 +0100
+++ b/src/common/connection_handlers_events.py Tue Nov 24 21:07:59 2015 +0100
@@ -1147,6 +1147,8 @@
if not frm:
frm = gajim.get_jid_from_account(account)
self.stanza.setTo(frm)
+ if not to:
+ to = gajim.get_jid_from_account(account)
self.stanza.setFrom(to)
self.sent = True
try:
changeset fe0edaff4d8d in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=fe0edaff4d8d
description: do not crash when we remove a contact for which neerby contcts are not in the same accounts. Fixes #8157
diffstat:
src/common/contacts.py | 2 ++
src/roster_window.py | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r d784a98d301a -r fe0edaff4d8d src/common/contacts.py
--- a/src/common/contacts.py Sun Nov 15 14:28:31 2015 +0100
+++ b/src/common/contacts.py Sun Nov 15 21:07:02 2015 +0100
@@ -840,6 +840,8 @@
# we want one nearby_family per account
nearby_family = [data for data in family if account == data['account']]
+ if not nearby_family:
+ return (None, None, None)
big_brother_data = self._get_metacontacts_big_brother(nearby_family)
big_brother_jid = big_brother_data['jid']
big_brother_account = big_brother_data['account']
diff -r d784a98d301a -r fe0edaff4d8d src/roster_window.py
--- a/src/roster_window.py Sun Nov 15 14:28:31 2015 +0100
+++ b/src/roster_window.py Sun Nov 15 21:07:02 2015 +0100
@@ -491,6 +491,8 @@
nearby_family, big_brother_jid, big_brother_account = \
self._get_nearby_family_and_big_brother(family, account)
+ if not big_brother_jid:
+ return []
big_brother_contact = gajim.contacts.get_first_contact_from_jid(
big_brother_account, big_brother_jid)
changeset d09e4ac8fe16 in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=d09e4ac8fe16
description: do not send ::1 as peer address when sending a file. Fixes #8191
diffstat:
src/common/jingle_transport.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r fe0edaff4d8d -r d09e4ac8fe16 src/common/jingle_transport.py
--- a/src/common/jingle_transport.py Sun Nov 15 21:07:02 2015 +0100
+++ b/src/common/jingle_transport.py Tue Nov 17 21:16:26 2015 +0100
@@ -198,7 +198,8 @@
try:
for addrinfo in socket.getaddrinfo(socket.gethostname(), None):
addr = addrinfo[4][0]
- if not addr in hosts and not addr.startswith('127'):
+ if not addr in hosts and not addr.startswith('127') and \
+ addr != '::1':
c = {'host': addr,
'candidate_id': self.connection.connection.getAnID(),
'port': port,
changeset 1afdd8382f0c in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=1afdd8382f0c
description: better detection of local IPs. See #8191
diffstat:
src/common/jingle_transport.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d09e4ac8fe16 -r 1afdd8382f0c src/common/jingle_transport.py
--- a/src/common/jingle_transport.py Tue Nov 17 21:16:26 2015 +0100
+++ b/src/common/jingle_transport.py Tue Nov 17 21:33:30 2015 +0100
@@ -198,7 +198,7 @@
try:
for addrinfo in socket.getaddrinfo(socket.gethostname(), None):
addr = addrinfo[4][0]
- if not addr in hosts and not addr.startswith('127') and \
+ if not addr in hosts and not addr.startswith('127.') and \
addr != '::1':
c = {'host': addr,
'candidate_id': self.connection.connection.getAnID(),