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:
parent
8444bd63d6
commit
51c08af67c
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user