mirror of
https://abf.rosa.ru/djam/cups.git
synced 2025-02-23 13:52:46 +00:00
33 lines
1.5 KiB
Diff
33 lines
1.5 KiB
Diff
diff -Naurp cups-1.4.8/scheduler/client.c cups-1.4.8.oden/scheduler/client.c
|
|
--- cups-1.4.8/scheduler/client.c 2011-01-22 01:07:22.000000000 +0100
|
|
+++ cups-1.4.8.oden/scheduler/client.c 2011-08-23 12:32:14.592896201 +0200
|
|
@@ -430,7 +430,7 @@ cupsdAcceptClient(cupsd_listener_t *lis)
|
|
{
|
|
if (httpAddrLocalhost(&temp))
|
|
strlcpy(con->servername, "localhost", sizeof(con->servername));
|
|
- else if (HostNameLookups || RemotePort)
|
|
+ else if (HostNameLookups)
|
|
httpAddrLookup(&temp, con->servername, sizeof(con->servername));
|
|
else
|
|
httpAddrString(&temp, con->servername, sizeof(con->servername));
|
|
@@ -443,7 +443,7 @@ cupsdAcceptClient(cupsd_listener_t *lis)
|
|
{
|
|
if (httpAddrLocalhost(&temp))
|
|
strlcpy(con->servername, "localhost", sizeof(con->servername));
|
|
- else if (HostNameLookups || RemotePort)
|
|
+ else if (HostNameLookups)
|
|
httpAddrLookup(&temp, con->servername, sizeof(con->servername));
|
|
else
|
|
httpAddrString(&temp, con->servername, sizeof(con->servername));
|
|
diff -Naurp cups-1.4.8/scheduler/conf.c cups-1.4.8.oden/scheduler/conf.c
|
|
--- cups-1.4.8/scheduler/conf.c 2011-01-11 08:05:58.000000000 +0100
|
|
+++ cups-1.4.8.oden/scheduler/conf.c 2011-08-23 12:32:14.593896179 +0200
|
|
@@ -750,7 +750,7 @@ cupsdReadConfiguration(void)
|
|
cupsdAddAlias(ServerAlias, temp);
|
|
cupsdLogMessage(CUPSD_LOG_DEBUG, "Added auto ServerAlias %s", temp);
|
|
|
|
- if (HostNameLookups || RemotePort)
|
|
+ if (HostNameLookups)
|
|
{
|
|
struct hostent *host; /* Host entry to get FQDN */
|
|
|