]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Support both IPP and IPPS URIs for shared printers.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 7 May 2012 23:22:55 +0000 (23:22 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 7 May 2012 23:22:55 +0000 (23:22 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10457 7a7537e8-13f0-0310-91df-b6672ffda945

scheduler/printers.c

index ce4678ba7312fbe3d749ae4140bed39b9ab40dc9..22fcd6b62798dc6cc283891d14db1adc951db1b8 100644 (file)
@@ -4832,7 +4832,8 @@ load_ppd(cupsd_printer_t *p)              /* I - Printer */
     else if (!strncmp(p->device_uri, "ipp://", 6) &&
             (strstr(p->device_uri, "/printers/") != NULL ||
              strstr(p->device_uri, "/classes/") != NULL ||
-             (strstr(p->device_uri, "._ipp.") != NULL &&
+             ((strstr(p->device_uri, "._ipp.") != NULL ||
+               strstr(p->device_uri, "._ipps.") != NULL) &&
               !strcmp(p->device_uri + strlen(p->device_uri) - 5,
                       "/cups"))))
     {