Add back the ip check, ipv6 needs to be disabled in the avahi daemon

config for this to work though
This commit is contained in:
Marco Pesenti Gritti 2006-07-26 16:33:44 +02:00
parent 8444bd63d6
commit 51c08af67c
2 changed files with 2 additions and 2 deletions

View File

@ -338,8 +338,7 @@ class PresenceService(object):
owner_nick = env.get_nick_name()
source_addr = service.get_source_address()
objid = self._get_next_object_id()
# FIXME put this back: source_addr in self._local_addrs.values()
if name == owner_nick:
if name == owner_nick and source_addr in self._local_addrs.values():
buddy = Buddy.Owner(self._bus_name, objid, service)
self._owner = buddy
logging.debug("Owner is '%s'." % name)

View File

@ -4,6 +4,7 @@ import logging
import sugar.env
from PresenceService import PresenceService
# FIXME this looks like duplicated
level = sugar.env.get_logging_level()
if level == 'debug':
logging.basicConfig(level=logging.DEBUG,