changeset f401f2aff435 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=f401f2aff435
description: do not add 127.* IPs when sending file

diffstat:

 src/common/connection_handlers.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9d7ea815b5ae -r f401f2aff435 src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Thu Jul 30 19:21:23 2009 +0200
+++ b/src/common/connection_handlers.py Fri Jul 31 10:57:48 2009 +0200
@@ -231,7 +231,7 @@
                        my_ips = [self.peerhost[0]]
                        # all IPs from local DNS
                        for addr in socket.getaddrinfo(socket.gethostname(), 
None):
-                               if not addr[4][0] in my_ips:
+                               if not addr[4][0] in my_ips and not 
addr[4][0].startswith('127'):
                                        my_ips.append(addr[4][0])
                        for ip in my_ips:
                                streamhost = common.xmpp.Node(tag = 
'streamhost')
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to