Show
Ignore:
Timestamp:
09/04/07 22:05:04 (15 months ago)
Author:
asterix
Message:

set zeroconf hostname on every connection. fix #3117

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/common/zeroconf/connection_zeroconf.py

    r8683 r8715  
    101101                        gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'sync_with_global_status', True) 
    102102 
    103                         #XXX make sure host is US-ASCII 
    104                         self.host = unicode(socket.gethostname()) 
    105                         gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'hostname', self.host) 
    106103                        gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'custom_port', 5298) 
    107104                        gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'is_zeroconf', True) 
    108                 self.host = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME, 'hostname') 
     105                #XXX make sure host is US-ASCII 
     106                self.host = unicode(socket.gethostname()) 
     107                gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'hostname', self.host) 
    109108                self.port = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME, 'custom_port') 
    110109                self.autoconnect = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME, 'autoconnect')