From 7fb0405e59d6ca233a81ffe271f9a48b46e5fe67 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sun, 6 Nov 2011 21:12:27 +0100
Subject: [PATCH] forgot commit: use ft_send_local_ips option. Fixes #7029

---
 src/common/protocol/bytestream.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/protocol/bytestream.py b/src/common/protocol/bytestream.py
index 2f522f466d..46f6e69937 100644
--- a/src/common/protocol/bytestream.py
+++ b/src/common/protocol/bytestream.py
@@ -361,6 +361,8 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
             streamhost.setAttr('jid', sender)
 
     def _add_local_ips_as_streamhosts_to_query(self, query, file_props):
+        if not gajim.config.get_per('accounts', self.name, 'ft_send_local_ips'):
+            return
         try:
             my_ips = [self.peerhost[0]] # The ip we're connected to server with
             # all IPs from local DNS
-- 
GitLab