2010-06-18 10:42:26 +00:00
|
|
|
diff -up cups-1.4.4/scheduler/network.c.hostnamelookups cups-1.4.4/scheduler/network.c
|
|
|
|
--- cups-1.4.4/scheduler/network.c.hostnamelookups 2010-04-09 23:42:09.000000000 +0100
|
|
|
|
+++ cups-1.4.4/scheduler/network.c 2010-06-18 11:13:02.331979867 +0100
|
|
|
|
@@ -154,11 +154,7 @@ cupsdNetIFUpdate(void)
|
2010-05-06 14:24:14 +00:00
|
|
|
* Try looking up the hostname for the address as needed...
|
|
|
|
*/
|
|
|
|
|
2010-06-18 10:42:26 +00:00
|
|
|
-#ifdef __APPLE__
|
|
|
|
if (HostNameLookups)
|
|
|
|
-#else
|
2010-05-06 14:24:14 +00:00
|
|
|
- if (HostNameLookups || RemotePort)
|
2010-06-18 10:42:26 +00:00
|
|
|
-#endif /* __APPLE__ */
|
2010-05-06 14:24:14 +00:00
|
|
|
httpAddrLookup((http_addr_t *)(addr->ifa_addr), hostname,
|
|
|
|
sizeof(hostname));
|
|
|
|
else
|
2010-06-18 10:42:26 +00:00
|
|
|
@@ -166,7 +162,7 @@ cupsdNetIFUpdate(void)
|
2010-05-06 14:24:14 +00:00
|
|
|
/*
|
|
|
|
* 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)))
|