diff options
author | Michael Sweet <michael.r.sweet@gmail.com> | 2017-06-20 14:01:15 -0400 |
---|---|---|
committer | Michael Sweet <michael.r.sweet@gmail.com> | 2017-06-20 14:01:15 -0400 |
commit | 296cd66b6849f403c28c626c7f0e076293c01055 (patch) | |
tree | 4fd60aa3e8532e7bd946cdf7be5584608268706d /cups/dest.c | |
parent | 90c67342b60cf53b05e337376465841e7e7cd6a6 (diff) | |
download | cups-296cd66b6849f403c28c626c7f0e076293c01055.tar.gz |
Save resolved device URI.
Diffstat (limited to 'cups/dest.c')
-rw-r--r-- | cups/dest.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cups/dest.c b/cups/dest.c index 5cc5c3d94..cc208913d 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -645,6 +645,9 @@ cupsConnectDest( if (strstr(uri, "._tcp")) uri = cups_dnssd_resolve(dest, uri, msec, cancel, cb, user_data); #endif /* HAVE_DNSSD || HAVE_AVAHI */ + + if (uri) + dest->num_options = cupsAddOption("resolved-device-uri", uri, dest->num_options, &dest->options); } } } @@ -658,6 +661,9 @@ cupsConnectDest( if (strstr(uri, "._tcp")) uri = cups_dnssd_resolve(dest, uri, msec, cancel, cb, user_data); #endif /* HAVE_DNSSD || HAVE_AVAHI */ + + if (uri) + dest->num_options = cupsAddOption("resolved-device-uri", uri, dest->num_options, &dest->options); } } |