From 1e5e2b1ba483c4c29d4dab0379d5a4f9b322b721 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Mon, 4 Sep 2017 20:54:41 +0200 Subject: [PATCH] [fix] remove local device from device list --- src/browser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/browser.c b/src/browser.c index 4a420f8..d2a622a 100644 --- a/src/browser.c +++ b/src/browser.c @@ -92,6 +92,8 @@ static void browse_callback( return; case AVAHI_BROWSER_NEW: 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 function we free it. If the server is terminated before the callback function is called the server will free