Commit e37b7159 authored by W. Michael Petullo's avatar W. Michael Petullo
Browse files

Check for LIBDMAPSHARING_ENABLE_LOCAL to facilitate one-host debugging


Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent b13fa6b5
......@@ -384,7 +384,7 @@ mdns_remote_added (DMAPMdnsBrowser *browser,
DACPShare *share)
{
DACPRemoteInfo *remote_info;
remote_info = g_new (DACPRemoteInfo, 1);
remote_info->host = g_strdup (service->host);
remote_info->port = service->port;
......
......@@ -506,7 +506,7 @@ browse_cb (AvahiServiceBrowser *service_browser,
#ifdef HAVE_AVAHI_0_6
local = ((flags & AVAHI_LOOKUP_RESULT_LOCAL) != 0);
#endif
if (local) {
if (local && getenv ("LIBDMAPSHARING_ENABLE_LOCAL") == NULL) {
g_debug ("Ignoring local service %s", name);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment