summaryrefslogtreecommitdiffstats
path: root/src/service-discovery-applet.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/service-discovery-applet.in')
-rwxr-xr-xsrc/service-discovery-applet.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/service-discovery-applet.in b/src/service-discovery-applet.in
index 0b86cab..11dbcf9 100755
--- a/src/service-discovery-applet.in
+++ b/src/service-discovery-applet.in
@@ -199,8 +199,12 @@ class ServiceDiscoveryApplet(gnomeapplet.Applet):
try:
if self.show_local_services == False:
- if self.server.IsServiceLocal( interface, protocol, name, type, domain) == True:
- return
+ if self.avahi_version != "avahi 0.6":
+ if self.server.IsServiceLocal( interface, protocol, name, type, domain) == True:
+ return
+ else:
+ if flags & avahi.AVAHI_LOOKUP_RESULT_IS_LOCAL:
+ return
except dbus.dbus_bindings.DBusException:
pass