]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Reuse TXT record for both IPP and IPPS services 1564/head
authorabubakarsabir924-cell <abubakarsabir924@gmail.com>
Sat, 2 May 2026 17:10:39 +0000 (22:10 +0500)
committerabubakarsabir924-cell <abubakarsabir924@gmail.com>
Sat, 2 May 2026 17:10:39 +0000 (22:10 +0500)
scheduler/dirsvc.c

index 22a010771d63bde146b945baebb9a2485531b14a..2d4622efc4ba6915758286a9b3810f8472c51afc 100644 (file)
@@ -520,9 +520,9 @@ dnssdRegisterPrinter(
   status &= cupsDNSSDServiceAdd(p->dnssd, "_printer._tcp", /*domain*/NULL, DNSSDHostName, /*port*/0, /*num_txt*/0, /*txt*/NULL);
 
   // IPP service
+  num_txt = dnssdBuildTxtRecord(p, &txt);
   if (!BrowseIPPSOnly)
   {
-    num_txt = dnssdBuildTxtRecord(p, &txt);
 
     if (p->type & CUPS_PTYPE_FAX)
   {