[fix] remove local device from device list
This commit is contained in:
@@ -92,6 +92,8 @@ static void browse_callback(
|
|||||||
return;
|
return;
|
||||||
case AVAHI_BROWSER_NEW:
|
case AVAHI_BROWSER_NEW:
|
||||||
fprintf(stderr, "(Browser) NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
|
fprintf(stderr, "(Browser) NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
|
||||||
|
if (flags & AVAHI_LOOKUP_RESULT_LOCAL)
|
||||||
|
break;
|
||||||
/* We ignore the returned resolver object. In the callback
|
/* We ignore the returned resolver object. In the callback
|
||||||
function we free it. If the server is terminated before
|
function we free it. If the server is terminated before
|
||||||
the callback function is called the server will free
|
the callback function is called the server will free
|
||||||
|
|||||||
Reference in New Issue
Block a user