forgot commit: use ft_send_local_ips option. Fixes #7029
This commit is contained in:
parent
9cfc2f4e15
commit
7fb0405e59
|
@ -361,6 +361,8 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
|
||||||
streamhost.setAttr('jid', sender)
|
streamhost.setAttr('jid', sender)
|
||||||
|
|
||||||
def _add_local_ips_as_streamhosts_to_query(self, query, file_props):
|
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:
|
try:
|
||||||
my_ips = [self.peerhost[0]] # The ip we're connected to server with
|
my_ips = [self.peerhost[0]] # The ip we're connected to server with
|
||||||
# all IPs from local DNS
|
# all IPs from local DNS
|
||||||
|
|
Loading…
Reference in New Issue