pulse-server: don't export NETWORK nodes

Don't export network nodes with zeroconf.

Fixes #2384
This commit is contained in:
Wim Taymans 2022-05-18 20:40:46 +02:00
parent 05deba85a4
commit b81b7febee

View file

@ -545,10 +545,20 @@ static void manager_removed(void *d, struct pw_manager_object *o)
static void manager_added(void *d, struct pw_manager_object *o)
{
struct service *s;
struct pw_node_info *info;
const char *str;
if (!pw_manager_object_is_sink(o) && !pw_manager_object_is_source(o))
return;
info = o->info;
if (info == NULL || info->props == NULL)
return;
if ((str = spa_dict_lookup(info->props, PW_KEY_NODE_NETWORK)) != NULL &&
spa_atob(str))
return;
s = create_service(d, o);
if (s == NULL)
return;