diff --git a/src/dnssd.c b/src/dnssd.c index 0ea3267..caf8524 100644 --- a/src/dnssd.c +++ b/src/dnssd.c @@ -285,7 +285,8 @@ dnssd_register(AvahiClient *c) ipp_txt = NULL; ipp_txt = avahi_string_list_add_printf(ipp_txt, "rp=ipp/print"); ipp_txt = avahi_string_list_add_printf(ipp_txt, "ty=%s %s", make, model); - /* ipp_txt = avahi_string_list_add_printf(ipp_txt, "adminurl=%s", temp); */ + if (strcasecmp(g_options.interface, "lo") == 0) + ipp_txt = avahi_string_list_add_printf(ipp_txt, "adminurl=%s", temp); ipp_txt = avahi_string_list_add_printf(ipp_txt, "product=(%s)", model); ipp_txt = avahi_string_list_add_printf(ipp_txt, "pdl=%s", formats); ipp_txt = avahi_string_list_add_printf(ipp_txt, "Color=U");