summaryrefslogtreecommitdiff
path: root/cups/dest.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2018-03-22 21:47:56 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2018-03-22 21:47:56 -0400
commit4b4895dfe73c5b4381edd7ccfb0b1fec125900b9 (patch)
tree21ae57a8555c02f641e0c28c84b27402b988042c /cups/dest.c
parentb25f3cf0807e897b240bd5c03f0740cf48980c54 (diff)
downloadcups-4b4895dfe73c5b4381edd7ccfb0b1fec125900b9.tar.gz
Also support /ipp/print/queuename.
Diffstat (limited to 'cups/dest.c')
-rw-r--r--cups/dest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cups/dest.c b/cups/dest.c
index 960370f01..55f6602c7 100644
--- a/cups/dest.c
+++ b/cups/dest.c
@@ -1281,6 +1281,12 @@ cupsGetDestWithURI(const char *name, /* I - Desired printer name or @code NULL@
name = resource + 10;
info = temp;
}
+ else if (!strncmp(resource, "/ipp/print/", 11))
+ {
+ snprintf(temp, sizeof(temp), "%s @ %s", resource + 11, hostname);
+ name = resource + 11;
+ info = temp;
+ }
else
{
name = hostname;