don't fail zeroconf with non-ascii hostname
This commit is contained in:
parent
e61f7aa4db
commit
8a03cfde96
|
@ -87,8 +87,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
|
||||||
'is_zeroconf', True)
|
'is_zeroconf', True)
|
||||||
gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME,
|
gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME,
|
||||||
'use_ft_proxies', False)
|
'use_ft_proxies', False)
|
||||||
#XXX make sure host is US-ASCII
|
self.host = unicode(socket.gethostname(), locale.getpreferredencoding())
|
||||||
self.host = unicode(socket.gethostname())
|
|
||||||
gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'hostname',
|
gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'hostname',
|
||||||
self.host)
|
self.host)
|
||||||
self.port = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME,
|
self.port = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME,
|
||||||
|
|
Loading…
Reference in New Issue