Changeset 8438

Show
Ignore:
Timestamp:
07/27/07 18:00:29 (18 months ago)
Author:
sb
Message:

set zeroconf hostname on every connection. fix: #3117

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/zeroconf/connection_zeroconf.py

    r8288 r8438  
    104104                        gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'sync_with_global_status', True) 
    105105 
    106                         #XXX make sure host is US-ASCII 
    107                         self.host = unicode(socket.gethostname()) 
    108                         gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'hostname', self.host) 
    109106                        gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'custom_port', 5298) 
    110107                        gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'is_zeroconf', True) 
    111                 self.host = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME, 'hostname') 
     108                #XXX make sure host is US-ASCII 
     109                self.host = unicode(socket.gethostname()) 
     110                gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'hostname', self.host) 
    112111                self.port = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME, 'custom_port') 
    113112                self.autoconnect = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME, 'autoconnect')