]> git.ipfire.org Git - thirdparty/cups.git/commit
Resolve DNS-SD URIs correctly also if they are from a service from localhost
authorTill Kamppeter <till.kamppeter@gmail.com>
Mon, 12 Oct 2020 20:36:35 +0000 (22:36 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Mon, 12 Oct 2020 20:36:35 +0000 (22:36 +0200)
commitd1f5d2fcad6b480bc6a6d575c241bd0476e4f921
tree73b61817b273b9f7b1e9a5465ac02e7e4f883e6e
parent9122816d5d5ccedb155aca7748025ca25487d719
Resolve DNS-SD URIs correctly also if they are from a service from localhost

If a service is only available locally, through the loopback device
("lo", "localhost"), like for example the IPP-over-USB daemon ipp-usb
or a Printer Application which is not sharing printers to the network,
the service cannot be accessed through the network host name but only
through the host name "localhost".

To make CUPS' DNS-SD-service-name-based device URIs working also with
these services we check whether the service comes through the loopback
interface and in this case we set the host name in the resolved
standard device URI to "localhost".
cups/http-support.c