Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • src/common/connection.py
    ... ... @@ -1917,8 +1917,9 @@ class Connection(CommonConnection, ConnectionHandlers):
    1917 1917
     
    
    1918 1918
             self.sm.resuming = False # back to previous state
    
    1919 1919
             # Discover Stun server(s)
    
    1920
    -        gajim.resolver.resolve('_stun._udp.' + helpers.idn_to_ascii(
    
    1921
    -                self.connected_hostname), self._on_stun_resolved)
    
    1920
    +        hostname = gajim.config.get_per('accounts', self.name, 'hostname')
    
    1921
    +        gajim.resolver.resolve('_stun._udp.' + helpers.idn_to_ascii(hostname),
    
    1922
    +                self._on_stun_resolved)
    
    1922 1923
     
    
    1923 1924
         def _on_stun_resolved(self, host, result_array):
    
    1924 1925
             if len(result_array) != 0: