Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
61c2259a
by Marc Schink at 2017-05-03T10:01:49+02:00
-
6e8e5aec
by Philipp Hörist at 2017-05-05T22:42:47+02:00
1 changed file:
Changes:
| ... | ... | @@ -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:
|