mirror of
https://abf.rosa.ru/djam/cups.git
synced 2025-02-23 13:52:46 +00:00
24 lines
760 B
Diff
24 lines
760 B
Diff
Author: till.kamppeter@gmail.com
|
|
|
|
--- a/scheduler/client.c
|
|
+++ b/scheduler/client.c
|
|
@@ -387,7 +387,7 @@
|
|
{
|
|
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));
|
|
--- a/scheduler/conf.c
|
|
+++ b/scheduler/conf.c
|
|
@@ -755,7 +755,7 @@
|
|
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 */
|
|
|