forgot commit: use ft_send_local_ips option. Fixes #7029

This commit is contained in:
Yann Leboulanger 2011-11-06 21:12:27 +01:00
parent 9cfc2f4e15
commit 7fb0405e59
1 changed files with 2 additions and 0 deletions

View File

@ -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