From ec71c7d7c25ec84dc5ee1da2ae9fa6ed06ff6dd9 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Fri, 31 Jul 2009 10:57:48 +0200
Subject: [PATCH] do not add 127.* IPs when sending file

---
 src/common/connection_handlers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index 76034cb80e..dd459087b4 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -231,7 +231,7 @@ class ConnectionBytestream:
 			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')
-- 
GitLab