X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-daemon%2Fstatic-services.c;h=36f1608b7556accffe72f4dd9ca860a3a12ad3db;hb=cb6f8a5396aa9bc32619ddd74ead4f3ff209d200;hp=a1ec8d073cfdf2a7c910332eb6a080c0d06a7303;hpb=1665d23538c5ed2128b6063d8445013f085ad234;p=catta diff --git a/avahi-daemon/static-services.c b/avahi-daemon/static-services.c index a1ec8d0..36f1608 100644 --- a/avahi-daemon/static-services.c +++ b/avahi-daemon/static-services.c @@ -38,6 +38,7 @@ #include #include #include +#include #include "main.h" #include "static-services.h" @@ -220,7 +221,8 @@ static void add_static_service_group_to_server(StaticServiceGroup *g) { 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) {