Disable avahi browser function

This commit is contained in:
Mike Brady
2016-05-02 09:45:00 +01:00
parent 1bb56b4ca1
commit c50af16abb
+5 -5
View File
@@ -287,11 +287,11 @@ static int avahi_register(char *srvname, int srvport) {
return -1;
}
// we need this to detect the IPv6 number we're advertising...
if (!(sb = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, config.regtype, NULL, 0, browse_callback, client))) {
warn("Failed to create service browser: %s\n", avahi_strerror(avahi_client_errno(client)));
return -1;
}
// we need this to detect the IPv6 number we're advertising...
// if (!(sb = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, config.regtype, NULL, 0, browse_callback, client))) {
// warn("Failed to create service browser: %s\n", avahi_strerror(avahi_client_errno(client)));
// return -1;
// }
if (avahi_threaded_poll_start(tpoll) < 0) {