Index: avahi-daemon/main.c =================================================================== --- avahi-daemon/main.c (revision 1781) +++ avahi-daemon/main.c (working copy) @@ -601,6 +601,38 @@ } } #endif + else if (strcasecmp(p->key, "allow-interfaces") == 0) { + int count = 0; + char **e, **t; + + avahi_string_list_free(c->server_config.allow_interfaces); + e = avahi_split_csv(p->value); + + for (t = e; *t; t++) { + c->server_config.allow_interfaces = avahi_string_list_add(c->server_config.allow_interfaces, *t); + count++; + } + + avahi_strfreev(e); + if (c->server_config.deny_interfaces != NULL && avahi_string_list_length(c->server_config.allow_interfaces) == 0) { + avahi_log_error("You have specified a deny_interfaces key but there are no allowed interfaces!\n"); + } + } + else if (strcasecmp(p->key, "deny-interfaces") == 0) { + char **e, **t; + + avahi_string_list_free(c->server_config.deny_interfaces); + e = avahi_split_csv(p->value); + + for (t = e; *t; t++) { + c->server_config.deny_interfaces = avahi_string_list_add(c->server_config.deny_interfaces, *t); + } + + avahi_strfreev(e); + if (c->server_config.allow_interfaces != NULL && avahi_string_list_length(c->server_config.allow_interfaces) == 0) { + avahi_log_error("You have specified a deny_interfaces key but there are no allowed interfaces!\n"); + } + } else { avahi_log_error("Invalid configuration key \"%s\" in group \"%s\"\n", p->key, g->name); goto finish; Index: avahi-daemon/avahi-daemon.conf =================================================================== --- avahi-daemon/avahi-daemon.conf (revision 1781) +++ avahi-daemon/avahi-daemon.conf (working copy) @@ -26,6 +26,8 @@ browse-domains=0pointer.de, zeroconf.org use-ipv4=yes use-ipv6=no +#allow-interfaces=eth0 +#deny-interfaces=eth1 #check-response-ttl=no #use-iff-running=no #enable-dbus=yes Index: man/avahi-daemon.conf.5.xml.in =================================================================== --- man/avahi-daemon.conf.5.xml.in (revision 1781) +++ man/avahi-daemon.conf.5.xml.in (working copy) @@ -72,6 +72,19 @@ + + + +