#include <avahi-common/alternative.h>
#include <avahi-common/error.h>
#include <avahi-core/log.h>
+#include <avahi-core/publish.h>
#include "main.h"
#include "static-services.h"
if (avahi_server_add_service_strlst(
avahi_server,
g->entry_group,
- -1, s->protocol,
+ AVAHI_IF_UNSPEC, s->protocol,
+ s->host_name ? AVAHI_PUBLISH_IS_PROXY : 0,
g->chosen_name, s->type,
s->domain_name, s->host_name, s->port,
s->txt_records) < 0) {