X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-utils%2Favahi-discover.in;h=d8697616f8434386df20e3006cd928c72ced58b1;hb=aa458a0a13d18882354f33c07b0a4e8e82e7a424;hp=6c78c51ef7bde047fcbf20423a7c6728f3ce08f9;hpb=d76069e946b4e89c828c96340677e40f583080c9;p=catta diff --git a/avahi-utils/avahi-discover.in b/avahi-utils/avahi-discover.in index 6c78c51..d869761 100755 --- a/avahi-utils/avahi-discover.in +++ b/avahi-utils/avahi-discover.in @@ -68,8 +68,8 @@ class Main_window(SimpleGladeApp): def service_resolved(self, interface, protocol, name, type, domain, host, aprotocol, address, port, txt): print "Service data for service '%s' of type '%s' in domain '%s' on %i.%i:" % (name, type, domain, interface, protocol) - print "\tHost %s (%s), port %i, TXT data: %s" % (host, address, port, str(txt)) - self.update_label(interface, protocol, name, type, domain, host, aprotocol, address, port, str(txt)) + print "\tHost %s (%s), port %i, TXT data: %s" % (host, address, port, str(avahi.txt_array_to_string_array(txt))) + self.update_label(interface, protocol, name, type, domain, host, aprotocol, address, port, str(avahi.txt_array_to_string_array(txt))) def print_error(err): print "Error:", str(err)