cups/cups-hostnamelookups.patch

22 lines
871 B
Diff

diff -up cups-1.4.3/scheduler/network.c.hostnamelookups cups-1.4.3/scheduler/network.c
--- cups-1.4.3/scheduler/network.c.hostnamelookups 2009-04-28 01:23:38.000000000 +0100
+++ cups-1.4.3/scheduler/network.c 2010-05-06 15:11:34.652926030 +0100
@@ -155,7 +155,7 @@ cupsdNetIFUpdate(void)
* Try looking up the hostname for the address as needed...
*/
- if (HostNameLookups || RemotePort)
+ if (HostNameLookups)
httpAddrLookup((http_addr_t *)(addr->ifa_addr), hostname,
sizeof(hostname));
else
@@ -163,7 +163,7 @@ cupsdNetIFUpdate(void)
/*
* Map the default server address and localhost to the server name
* and localhost, respectively; for all other addresses, use the
- * dotted notation...
+ * numeric address...
*/
if (httpAddrLocalhost((http_addr_t *)(addr->ifa_addr)))